From 4bbd75686c6490d09bf5c6b76acaf16ea70be205 Mon Sep 17 00:00:00 2001 From: marioalexis Date: Sun, 14 Mar 2021 17:14:58 -0300 Subject: [PATCH] Draft: Fix regression in sync_snap_toolbar_button function --- src/Mod/Draft/draftguitools/gui_snaps.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Mod/Draft/draftguitools/gui_snaps.py b/src/Mod/Draft/draftguitools/gui_snaps.py index b620c557a5..09cd3df39d 100644 --- a/src/Mod/Draft/draftguitools/gui_snaps.py +++ b/src/Mod/Draft/draftguitools/gui_snaps.py @@ -70,9 +70,9 @@ def sync_snap_toolbar_button(button, status): if action.objectName() == button: action.setChecked(status) if action.isChecked(): - action.setToolTip(a.toolTip().replace("OFF","ON")) + action.setToolTip(action.toolTip().replace("OFF","ON")) else: - action.setToolTip(a.toolTip().replace("ON","OFF")) + action.setToolTip(action.toolTip().replace("ON","OFF")) return