Skip to content
Permalink
Browse files

Merge pull request #625 from vinayan/projcrash

[Fix #7964] Ftools-Sum Line length - Fix progress bar
  • Loading branch information
NathanW2 committed Jun 11, 2013
2 parents 6381d62 + ba4a3cc commit bb6a4ee770041eb161b84c96ad8725790d92a36d
Showing with 3 additions and 3 deletions.
  1. +3 −3 python/plugins/fTools/tools/doSumLines.py
@@ -112,8 +112,8 @@ def compute(self, inPoly, inLns, inField, outPath, progressBar):
inGeom = QgsGeometry()
outGeom = QgsGeometry()
distArea = QgsDistanceArea()
start = 15.00
add = 85.00 / polyProvider.featureCount()
start = 0.00
add = 100.00 / polyProvider.featureCount()
check = QFile(self.shapefileName)
if check.exists():
if not QgsVectorFileWriter.deleteShapeFile(self.shapefileName):
@@ -141,5 +141,5 @@ def compute(self, inPoly, inLns, inField, outPath, progressBar):
outFeat.setAttributes(atMap)
writer.addFeature(outFeat)
start = start + 1
progressBar.setValue(start)
progressBar.setValue( start * (add))
del writer

0 comments on commit bb6a4ee

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