mirror of
https://github.com/qgis/QGIS.git
synced 2025-04-17 00:04:02 -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()
|
inGeom = QgsGeometry()
|
||||||
outGeom = QgsGeometry()
|
outGeom = QgsGeometry()
|
||||||
distArea = QgsDistanceArea()
|
distArea = QgsDistanceArea()
|
||||||
start = 15.00
|
start = 0.00
|
||||||
add = 85.00 / polyProvider.featureCount()
|
add = 100.00 / polyProvider.featureCount()
|
||||||
check = QFile(self.shapefileName)
|
check = QFile(self.shapefileName)
|
||||||
if check.exists():
|
if check.exists():
|
||||||
if not QgsVectorFileWriter.deleteShapeFile(self.shapefileName):
|
if not QgsVectorFileWriter.deleteShapeFile(self.shapefileName):
|
||||||
@ -141,5 +141,5 @@ class Dialog(QDialog, Ui_Dialog):
|
|||||||
outFeat.setAttributes(atMap)
|
outFeat.setAttributes(atMap)
|
||||||
writer.addFeature(outFeat)
|
writer.addFeature(outFeat)
|
||||||
start = start + 1
|
start = start + 1
|
||||||
progressBar.setValue(start)
|
progressBar.setValue( start * (add))
|
||||||
del writer
|
del writer
|
||||||
|
Loading…
x
Reference in New Issue
Block a user