Skip to content

Commit

Permalink
Merge pull request #625 from vinayan/projcrash
Browse files Browse the repository at this point in the history
[Fix #7964] Ftools-Sum Line length - Fix progress bar
  • Loading branch information
NathanW2 committed Jun 11, 2013
2 parents 6381d62 + ba4a3cc commit bb6a4ee
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions python/plugins/fTools/tools/doSumLines.py
Expand Up @@ -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):
Expand Down Expand Up @@ -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.