Skip to content
Permalink
Browse files

fix ProcessingQgisAlgorithmsTest (followup 491c52c)

  • Loading branch information
jef-n committed Sep 3, 2016
1 parent 71db577 commit 68cbf57287a8dbcf1b388ebb63434d2bb7c29a78
Showing with 7 additions and 6 deletions.
  1. +7 −6 python/plugins/processing/algs/qgis/Dissolve.py
@@ -104,7 +104,8 @@ def processAlgorithm(self, progress):
tmpInGeom = inFeat.geometry()
if tmpInGeom is None or tmpInGeom.isGeosEmpty():
ProcessingLog.addToLog(ProcessingLog.LOG_ERROR,
self.tr('Skipped feature %i, which has a null geometry' % current))
self.tr('Skipped feature %i, which has a null geometry' % current))
continue
tmpOutGeom = QgsGeometry(outFeat.geometry())
errors = tmpInGeom.validateGeometry()
if len(errors) != 0:
@@ -126,11 +127,11 @@ def processAlgorithm(self, progress):
if errors:
for error in errors:
ProcessingLog.addToLog(ProcessingLog.LOG_ERROR,
self.tr('ValidateGeometry()'
'error:One or more input'
'features have invalid '
'geometry: ')
+ error.what())
self.tr('ValidateGeometry()'
'error:One or more input'
'features have invalid '
'geometry: ')
+ error.what())
continue
outFeat.setGeometry(tmpOutGeom)
except:

0 comments on commit 68cbf57

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