Sketcher: Fix deleteall crash
This commit is contained in:
@@ -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());
|
||||
|
||||
Reference in New Issue
Block a user