mirror of
https://github.com/qgis/QGIS.git
synced 2025-04-15 00:04:00 -04:00
Merge pull request #625 from vinayan/projcrash
[Fix #7964] Ftools-Sum Line length - Fix progress bar
This commit is contained in:
commit
bb6a4ee770
@ -112,8 +112,8 @@ class Dialog(QDialog, Ui_Dialog):
|
||||
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 @@ class Dialog(QDialog, Ui_Dialog):
|
||||
outFeat.setAttributes(atMap)
|
||||
writer.addFeature(outFeat)
|
||||
start = start + 1
|
||||
progressBar.setValue(start)
|
||||
progressBar.setValue( start * (add))
|
||||
del writer
|
||||
|
Loading…
x
Reference in New Issue
Block a user