Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
[processing] use proper way to access geometry
  • Loading branch information
Bernhard Ströbl authored and m-kuhn committed Mar 16, 2016
1 parent 5ae0445 commit 8a84152
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions python/plugins/processing/algs/qgis/Eliminate.py
Expand Up @@ -240,7 +240,7 @@ def processAlgorithm(self, progress):
# Iterate over the polygons to eliminate
for i in range(len(featToEliminate)):
feat = featToEliminate.pop()
geom2Eliminate = feat.geometry()
geom2Eliminate = QgsGeometry(feat.geometry())
bbox = geom2Eliminate.boundingBox()
fit = inLayer.getFeatures(
QgsFeatureRequest().setFilterRect(bbox))
Expand All @@ -251,7 +251,7 @@ def processAlgorithm(self, progress):
selFeat = QgsFeature()

while fit.nextFeature(selFeat):
selGeom = selFeat.geometry()
selGeom = QgsGeometry(selFeat.geometry())

if geom2Eliminate.intersects(selGeom):
# We have a candidate
Expand Down

0 comments on commit 8a84152

Please sign in to comment.