Skip to content
Permalink
Browse files

Merge pull request #41738 from m-kuhn/alg_exec_no_selection_unbound_l…

…ocal

Fix calling in place with empty iterator
  • Loading branch information
m-kuhn committed Feb 22, 2021
2 parents 7b37f32 + 60ad7d4 commit a825b5af351fe99e3228816650fca31d97c7980d
Showing with 1 addition and 0 deletions.
  1. +1 −0 python/plugins/processing/gui/AlgorithmExecutor.py
@@ -179,6 +179,7 @@ def execute_in_place_run(alg, parameters, context=None, feedback=None, raise_exc
iterator_req.setInvalidGeometryCheck(context.invalidGeometryCheck())
feature_iterator = active_layer.getFeatures(iterator_req)
step = 100 / len(active_layer.selectedFeatureIds()) if active_layer.selectedFeatureIds() else 1
current = 0
for current, f in enumerate(feature_iterator):
if feedback.isCanceled():
break

0 comments on commit a825b5a

Please sign in to comment.