Skip to content
Permalink
Browse files

[processing] Fix autoincremental field

  • Loading branch information
m-kuhn committed Mar 15, 2016
1 parent 01cc455 commit 5607ae3f78ee7fe76ec45c2f17cdad7a4f39f954
Showing with 2 additions and 2 deletions.
  1. +2 −2 python/plugins/processing/algs/qgis/AutoincrementalField.py
@@ -26,7 +26,7 @@
__revision__ = '$Format:%H$'

from PyQt4.QtCore import QVariant
from qgis.core import QgsField, QgsFeature, QgsGeometry
from qgis.core import QgsField, QgsFeature
from processing.core.GeoAlgorithm import GeoAlgorithm
from processing.core.parameters import ParameterVector
from processing.core.outputs import OutputVector
@@ -62,7 +62,7 @@ def processAlgorithm(self, progress):
geom = feat.geometry()
outFeat.setGeometry(geom)
attrs = feat.attributes()
attrs.append(count)
attrs.append(current)
outFeat.setAttributes(attrs)
writer.addFeature(outFeat)
del writer

0 comments on commit 5607ae3

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