mirror of
https://github.com/qgis/QGIS.git
synced 2025-12-04 00:06:46 -05:00
Merge pull request #41738 from m-kuhn/alg_exec_no_selection_unbound_local
Fix calling in place with empty iterator
This commit is contained in:
commit
a825b5af35
@ -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
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user