Skip to content

Commit a7092ca

Browse files
gacarrilloralexbruy
authored andcommitted
Fixing issue with 'Eliminate sliver polygons' and fields of type long.
(cherry picked from commit be25a29)
1 parent 961f6be commit a7092ca

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

python/plugins/processing/algs/qgis/Eliminate.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -102,7 +102,7 @@ def processAlgorithm(self, progress):
102102
selectType = inLayer.fields()[selectindex].type()
103103
selectionError = False
104104

105-
if selectType == 2:
105+
if selectType == 2 or selectType == 4:
106106
try:
107107
y = int(comparisonvalue)
108108
except ValueError:
@@ -162,7 +162,7 @@ def processAlgorithm(self, progress):
162162
if aValue is None:
163163
continue
164164

165-
if selectType == 2:
165+
if selectType == 2 or selectType == 4:
166166
x = int(aValue)
167167
elif selectType == 6:
168168
x = float(aValue)

0 commit comments

Comments
 (0)