Skip to content

Commit

Permalink
[processing] more complete support for int64 fields (follow up 8d2cc88)
Browse files Browse the repository at this point in the history
(cherry picked from commit 649d41f)
  • Loading branch information
alexbruy committed Oct 20, 2016
1 parent 2c6ebf1 commit 7ff0883
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 @@ -113,7 +113,7 @@ def processAlgorithm(self, progress):
selectType = processLayer.fields()[selectindex].type()
selectionError = False

if selectType == QVariant.Int or selectType == QVariant.LongLong:
if selectType in [QVariant.Int, QVariant.LongLong, QVariant.UInt, QVariant.ULongLong]:
try:
y = int(comparisonvalue)
except ValueError:
Expand Down Expand Up @@ -173,7 +173,7 @@ def processAlgorithm(self, progress):
if aValue is None:
continue

if selectType == QVariant.Int or selectType == QVariant.LongLong:
if selectType in [QVariant.Int, QVariant.LongLong, QVariant.UInt, QVariant.ULongLong]:
x = int(aValue)
elif selectType == QVariant.Double:
x = float(aValue)
Expand Down

0 comments on commit 7ff0883

Please sign in to comment.