Skip to content

Commit

Permalink
[processing] Fix autoincremental field
Browse files Browse the repository at this point in the history
  • Loading branch information
m-kuhn committed Mar 15, 2016
1 parent 01cc455 commit 5607ae3
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions python/plugins/processing/algs/qgis/AutoincrementalField.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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.