Skip to content
Browse files

[in-place] Fix alg runner when context is none

  • Loading branch information
elpaso committed Oct 20, 2018
1 parent 99f3419 commit dcd33186bbd613cc72d3d82f6824b8c3fc05a994
Showing with 5 additions and 0 deletions.
  1. +5 −0 python/plugins/processing/gui/
@@ -268,6 +268,11 @@ def execute_in_place(alg, parameters, context=None, feedback=None):
:rtype: tuple

if feedback is None:
feedback = QgsProcessingFeedback()
if context is None:
context = dataobjects.createContext(feedback)

if not 'INPUT' in parameters or not parameters['INPUT']:
parameters['INPUT'] = iface.activeLayer()
ok, results = execute_in_place_run(alg, parameters, context=context, feedback=feedback)

1 comment on commit dcd3318


This comment has been minimized.

Copy link

@nirvn nirvn commented on dcd3318 Oct 20, 2018

@elpaso , that was a quick turnaround, thanks!

Please sign in to comment.
You can’t perform that action at this time.