Sketcher: Fix deleteall crash

This commit is contained in:
Abdullah Tahiri
2018-06-10 18:41:36 +02:00
committed by wmayer
parent 9975c75888
commit 1e37612a27

View File

@@ -1966,6 +1966,8 @@ void CmdSketcherDeleteAllGeometry::activated(int iMsg)
QMessageBox::Yes, QMessageBox::Cancel);
// use an equality constraint
if (ret == QMessageBox::Yes) {
getSelection().clearSelection();
Gui::Document * doc= getActiveGuiDocument();
SketcherGui::ViewProviderSketch* vp = static_cast<SketcherGui::ViewProviderSketch*>(doc->getInEdit());