Make sure that ViewProviderSketch::unsetEdit exits normally

This commit is contained in:
wmayer
2012-07-18 14:33:14 +02:00
parent 33cc47db95
commit e84230e08f

View File

@@ -2830,8 +2830,12 @@ void ViewProviderSketch::unsetEdit(int ModNum)
this->show();
// and update the sketch
getSketchObject()->getDocument()->recompute();
try {
// and update the sketch
getSketchObject()->getDocument()->recompute();
}
catch (...) {
}
// clear the selection and set the new/edited sketch(convenience)
Gui::Selection().clearSelection();