Skip to content

Commit

Permalink
Merge pull request #41738 from m-kuhn/alg_exec_no_selection_unbound_l…
Browse files Browse the repository at this point in the history
…ocal

Fix calling in place with empty iterator
  • Loading branch information
m-kuhn committed Feb 22, 2021
2 parents 7b37f32 + 60ad7d4 commit a825b5a
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions python/plugins/processing/gui/AlgorithmExecutor.py
Expand Up @@ -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
Expand Down

0 comments on commit a825b5a

Please sign in to comment.