Skip to content
Permalink
Browse files
[processing] fixed wrong call to addToLog
  • Loading branch information
volaya committed Apr 26, 2016
1 parent 250f657 commit 5cc2dcd2a469da07ad95733a4832e21d01ba466c
Showing with 2 additions and 2 deletions.
  1. +2 −2 python/plugins/processing/algs/qgis/Buffer.py
@@ -58,7 +58,7 @@ def buffering(progress, writer, distance, field, useField, layer, dissolve,

inGeom = QgsGeometry(inFeat.geometry())
if inGeom.isGeosEmpty() or not inGeom.isGeosValid():
ProcessingLog.addToLog('Feature {} has empty or invalid geometry. Skipping...'.format(inFeat.id()), ProcessingLog.LOG_WARNING)
ProcessingLog.addToLog(ProcessingLog.LOG_WARNING, 'Feature {} has empty or invalid geometry. Skipping...'.format(inFeat.id()))
continue
outGeom = inGeom.buffer(float(value), segments)
if first:
@@ -83,7 +83,7 @@ def buffering(progress, writer, distance, field, useField, layer, dissolve,
value = distance
inGeom = QgsGeometry(inFeat.geometry())
if inGeom.isGeosEmpty() or not inGeom.isGeosValid():
ProcessingLog.addToLog('Feature {} has empty or invalid geometry. Skipping...'.format(inFeat.id()), ProcessingLog.LOG_WARNING)
ProcessingLog.addToLog( ProcessingLog.LOG_WARNING, 'Feature {} has empty or invalid geometry. Skipping...'.format(inFeat.id()))
continue

outGeom = inGeom.buffer(float(value), segments)

0 comments on commit 5cc2dcd

Please sign in to comment.