Skip to content

Commit aef3f34

Browse files
author
Bernhard Ströbl
committedJan 3, 2013
fix #6925
fTools' eliminate now works if the polygon to merge with has an id of 0
1 parent 1039423 commit aef3f34

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed
 

‎python/plugins/fTools/tools/doEliminate.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -167,7 +167,7 @@ def eliminate(self, inLayer, boundary, progressBar, outFileName = None):
167167
try:
168168
found = fidsToEliminate.index(selFid)
169169
except ValueError: #selFid is not in fidsToEliminate
170-
# check wether the geometry to eliminate and the other geometry intersect
170+
# check whether the geometry to eliminate and the other geometry intersect
171171
selFeat = QgsFeature()
172172

173173
if outLayer.featureAtId(selFid, selFeat, True, False):
@@ -190,7 +190,7 @@ def eliminate(self, inLayer, boundary, progressBar, outFileName = None):
190190
mergeWithFid = selFid
191191
mergeWithGeom = QgsGeometry(selGeom) # deep copy of the geometry
192192

193-
if mergeWithFid: # a successful candidate
193+
if mergeWithFid != None: # a successful candidate
194194
try:
195195
geomList = geomsToMerge[mergeWithFid]
196196
except KeyError:

0 commit comments

Comments
 (0)
Please sign in to comment.