Skip to content

Commit

Permalink
[processing] fixed fields calculator algorithm
Browse files Browse the repository at this point in the history
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 05dc06d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions python/plugins/processing/algs/qgis/FieldsCalculator.py
Expand Up @@ -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])
Expand Down

0 comments on commit 05dc06d

Please sign in to comment.