Skip to content

Commit bb6a4ee

Browse files
committed
Merge pull request #625 from vinayan/projcrash
[Fix #7964] Ftools-Sum Line length - Fix progress bar
2 parents 6381d62 + ba4a3cc commit bb6a4ee

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

python/plugins/fTools/tools/doSumLines.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -112,8 +112,8 @@ def compute(self, inPoly, inLns, inField, outPath, progressBar):
112112
inGeom = QgsGeometry()
113113
outGeom = QgsGeometry()
114114
distArea = QgsDistanceArea()
115-
start = 15.00
116-
add = 85.00 / polyProvider.featureCount()
115+
start = 0.00
116+
add = 100.00 / polyProvider.featureCount()
117117
check = QFile(self.shapefileName)
118118
if check.exists():
119119
if not QgsVectorFileWriter.deleteShapeFile(self.shapefileName):
@@ -141,5 +141,5 @@ def compute(self, inPoly, inLns, inField, outPath, progressBar):
141141
outFeat.setAttributes(atMap)
142142
writer.addFeature(outFeat)
143143
start = start + 1
144-
progressBar.setValue(start)
144+
progressBar.setValue( start * (add))
145145
del writer

0 commit comments

Comments
 (0)