Showing with 1 addition and 2 deletions.
  1. +1 −2 python/plugins/fTools/tools/doVectorSplit.py
3 changes: 1 addition & 2 deletions python/plugins/fTools/tools/doVectorSplit.py
Original file line number Diff line number Diff line change
Expand Up @@ -170,7 +170,6 @@ def run(self):

self.emit(SIGNAL("rangeCalculated(PyQt_PyObject)"), len(unique))

fit = provider.getFeatures()

for i in unique:
check = QFile(baseName + "_" + unicode(i.toString().trimmed()) + ".shp")
Expand All @@ -182,7 +181,7 @@ def run(self):

writer = QgsVectorFileWriter(fName, self.encoding, fieldList, geom, sRs)

fit.rewind()
fit = provider.getFeatures()
while fit.nextFeature(inFeat):
atMap = inFeat.attributes()
if atMap[index] == i:
Expand Down