mirror of
https://github.com/qgis/QGIS.git
synced 2025-04-15 00:04:00 -04:00
fix #6925
fTools' eliminate now works if the polygon to merge with has an id of 0
This commit is contained in:
parent
103942391d
commit
aef3f345fb
@ -167,7 +167,7 @@ class Dialog(QtGui.QDialog, Ui_Dialog):
|
||||
try:
|
||||
found = fidsToEliminate.index(selFid)
|
||||
except ValueError: #selFid is not in fidsToEliminate
|
||||
# check wether the geometry to eliminate and the other geometry intersect
|
||||
# check whether the geometry to eliminate and the other geometry intersect
|
||||
selFeat = QgsFeature()
|
||||
|
||||
if outLayer.featureAtId(selFid, selFeat, True, False):
|
||||
@ -190,7 +190,7 @@ class Dialog(QtGui.QDialog, Ui_Dialog):
|
||||
mergeWithFid = selFid
|
||||
mergeWithGeom = QgsGeometry(selGeom) # deep copy of the geometry
|
||||
|
||||
if mergeWithFid: # a successful candidate
|
||||
if mergeWithFid != None: # a successful candidate
|
||||
try:
|
||||
geomList = geomsToMerge[mergeWithFid]
|
||||
except KeyError:
|
||||
|
Loading…
x
Reference in New Issue
Block a user