fixes #0003252: External geometry tool keeps hovered item active after leaving

This commit is contained in:
wmayer
2017-12-25 10:47:51 +01:00
parent 1ef069292c
commit c18bc414bb
2 changed files with 4 additions and 0 deletions

View File

@@ -71,6 +71,9 @@ void DrawSketchHandler::quit(void)
sketchgui->drawEdit(std::vector<Base::Vector2d>());
resetPositionText();
Gui::Selection().rmvSelectionGate();
Gui::Selection().rmvPreselect();
unsetCursor();
sketchgui->purgeHandler();
}

View File

@@ -5136,6 +5136,7 @@ bool ViewProviderSketch::setEdit(int ModNum)
// clear the selection (convenience)
Gui::Selection().clearSelection();
Gui::Selection().rmvPreselect();
// create the container for the additional edit data
assert(!edit);