From 76eb1bef108b66ee43faa56890f3e3aed993ad40 Mon Sep 17 00:00:00 2001 From: Roy-043 <70520633+Roy-043@users.noreply.github.com> Date: Sun, 22 Oct 2023 11:15:00 +0200 Subject: [PATCH] Draft: Fix Gui.doCommand issue in gui_planeproxy caused by PR11080 (#11134) The previous code resulted in a syntax error. --- src/Mod/Draft/draftguitools/gui_planeproxy.py | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/Mod/Draft/draftguitools/gui_planeproxy.py b/src/Mod/Draft/draftguitools/gui_planeproxy.py index 0334477abf..f1d9afa2dd 100644 --- a/src/Mod/Draft/draftguitools/gui_planeproxy.py +++ b/src/Mod/Draft/draftguitools/gui_planeproxy.py @@ -63,9 +63,8 @@ class Draft_WorkingPlaneProxy: App.ActiveDocument.openTransaction("Create WP proxy") Gui.addModule("Draft") Gui.addModule("WorkingPlane") - _cmd = "pl = WorkingPlane.get_working_plane().get_placement()" - _cmd += "Draft.make_workingplaneproxy(pl)" - Gui.doCommand(_cmd) + Gui.doCommand("pl = WorkingPlane.get_working_plane().get_placement()") + Gui.doCommand("Draft.make_workingplaneproxy(pl)") App.ActiveDocument.commitTransaction() App.ActiveDocument.recompute()