Skip to content
Permalink
Browse files

[processing] more complete support for int64 fields (follow up 8d2cc88)

(cherry picked from commit 649d41f)
  • Loading branch information
alexbruy committed Oct 20, 2016
1 parent 62a9436 commit 89fa21e5fa799dca8191aa7d3d21645ec56fb97a
Showing with 2 additions and 2 deletions.
  1. +2 −2 python/plugins/processing/algs/qgis/Eliminate.py
@@ -115,7 +115,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:
@@ -175,7 +175,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)

0 comments on commit 89fa21e

Please sign in to comment.
You can’t perform that action at this time.