From bad73abe84dba2aeb5314ac8e572643ea4f3d150 Mon Sep 17 00:00:00 2001 From: Abdullah Tahiri Date: Tue, 24 Jan 2017 23:32:22 +0100 Subject: [PATCH] Sketcher: BSpline Creation fix - Remove introduced pole if creation cancelled --- src/Mod/Sketcher/Gui/CommandCreateGeo.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/src/Mod/Sketcher/Gui/CommandCreateGeo.cpp b/src/Mod/Sketcher/Gui/CommandCreateGeo.cpp index 3e5455363c..bffbf1b57f 100644 --- a/src/Mod/Sketcher/Gui/CommandCreateGeo.cpp +++ b/src/Mod/Sketcher/Gui/CommandCreateGeo.cpp @@ -4623,6 +4623,7 @@ public: } else if(CurrentConstraint == 1) { // if we just have one point and we can not close anything, then cancel this creation but continue according to continuous mode + sketchgui->getDocument()->undo(1); if(!continuousMode){ DrawSketchHandler::quit(); }