Skip to content

Commit

Permalink
Fixing issue with 'Eliminate sliver polygons' and fields of type long.
Browse files Browse the repository at this point in the history
(cherry picked from commit be25a29)
  • Loading branch information
gacarrillor authored and alexbruy committed Oct 20, 2016
1 parent 5c47bd6 commit 4730d25
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions python/plugins/processing/algs/qgis/Eliminate.py
Original file line number Diff line number Diff line change
Expand Up @@ -115,7 +115,7 @@ def processAlgorithm(self, progress):
selectType = processLayer.fields()[selectindex].type()
selectionError = False

if selectType == 2:
if selectType == 2 or selectType == 4:
try:
y = int(comparisonvalue)
except ValueError:
Expand Down Expand Up @@ -175,7 +175,7 @@ def processAlgorithm(self, progress):
if aValue is None:
continue

if selectType == 2:
if selectType == 2 or selectType == 4:
x = int(aValue)
elif selectType == 6:
x = float(aValue)
Expand Down

0 comments on commit 4730d25

Please sign in to comment.