Skip to content
Permalink
Browse files
[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
  • Loading branch information
volaya committed Nov 21, 2014
1 parent 09c6b2b commit 05dc06d41e6fd4ca5dda8856d96d584cd46efd89
Showing 1 changed file with 2 additions and 2 deletions.
@@ -101,8 +101,8 @@ def processAlgorithm(self, progress):

da = QgsDistanceArea()
da.setSourceCrs(layer.crs().srsid())
canvas = iface.mapCanvas()
da.setEllipsoidalMode(canvas.mapRenderer().hasCrsTransformEnabled())
#canvas = iface.mapCanvas()
#da.setEllipsoidalMode(iface.mapCanvas().mapRenderer().hasCrsTransformEnabled())
da.setEllipsoid(QgsProject.instance().readEntry('Measure',
'/Ellipsoid',
GEO_NONE)[0])

0 comments on commit 05dc06d

Please sign in to comment.