From 81bdb1f276540427872c72d2033c3f400a89a626 Mon Sep 17 00:00:00 2001 From: luzpaz Date: Mon, 24 Jul 2017 14:47:59 -0400 Subject: [PATCH] Sketcher: typo fix --- src/Mod/Sketcher/Gui/CommandConstraints.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/Mod/Sketcher/Gui/CommandConstraints.cpp b/src/Mod/Sketcher/Gui/CommandConstraints.cpp index e1d750b2e5..9270f61a9a 100644 --- a/src/Mod/Sketcher/Gui/CommandConstraints.cpp +++ b/src/Mod/Sketcher/Gui/CommandConstraints.cpp @@ -6826,7 +6826,7 @@ void CmdSketcherToggleDrivingConstraint::activated(int iMsg) // undo command open openCommand("Toggle driving from/to non-driving"); - int succesful=SubNames.size(); + int successful=SubNames.size(); // go through the selected subelements for (std::vector::const_iterator it=SubNames.begin();it!=SubNames.end();++it){ // only handle constraints @@ -6837,12 +6837,12 @@ void CmdSketcherToggleDrivingConstraint::activated(int iMsg) doCommand(Doc,"App.ActiveDocument.%s.toggleDriving(%d) ",selection[0].getFeatName(),ConstrId); } catch(const Base::Exception&) { - succesful--; + successful--; } } } - if (succesful > 0) + if (successful > 0) commitCommand(); else abortCommand();