Skip to content

Commit 5511a73

Browse files
committed
[processing] also fix case without dissolving
(cherry picked from commit 2fbb617)
1 parent ec8e35e commit 5511a73

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

python/plugins/processing/algs/qgis/Buffer.py

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -85,8 +85,11 @@ def buffering(progress, writer, distance, field, useField, layer, dissolve,
8585
else:
8686
value = distance
8787
inGeom = QgsGeometry(inFeat.geometry())
88-
if inGeom.isGeosEmpty() or not inGeom.isGeosValid():
89-
ProcessingLog.addToLog(ProcessingLog.LOG_WARNING, 'Feature {} has empty or invalid geometry. Skipping...'.format(inFeat.id()))
88+
if inGeom.isGeosEmpty():
89+
ProcessingLog.addToLog(ProcessingLog.LOG_WARNING, 'Feature {} has empty geometry. Skipping...'.format(inFeat.id()))
90+
continue
91+
if not inGeom.isGeosValid():
92+
ProcessingLog.addToLog(ProcessingLog.LOG_WARNING, 'Feature {} has invalid geometry. Skipping...'.format(inFeat.id()))
9093
continue
9194

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

0 commit comments

Comments
 (0)