Skip to content

Commit 05dc06d

Browse files
committed
[processing] fixed fields calculator algorithm
It's not a complete fix, as it just comments out a line that was causing a 'underlying C/C++ object was deleted' error Should revisit is later. For now, this allows the algorithm to run correctly and not crash qgis
1 parent 09c6b2b commit 05dc06d

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

python/plugins/processing/algs/qgis/FieldsCalculator.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -101,8 +101,8 @@ def processAlgorithm(self, progress):
101101

102102
da = QgsDistanceArea()
103103
da.setSourceCrs(layer.crs().srsid())
104-
canvas = iface.mapCanvas()
105-
da.setEllipsoidalMode(canvas.mapRenderer().hasCrsTransformEnabled())
104+
#canvas = iface.mapCanvas()
105+
#da.setEllipsoidalMode(iface.mapCanvas().mapRenderer().hasCrsTransformEnabled())
106106
da.setEllipsoid(QgsProject.instance().readEntry('Measure',
107107
'/Ellipsoid',
108108
GEO_NONE)[0])

0 commit comments

Comments
 (0)