From 3d4c853def22b7901dcfe809cf046e5f61d373a1 Mon Sep 17 00:00:00 2001 From: jrheinlaender Date: Thu, 26 Sep 2013 21:10:46 +0200 Subject: [PATCH] Fix bug in workbench --- src/Mod/PartDesign/Gui/ViewProvider.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/Mod/PartDesign/Gui/ViewProvider.cpp b/src/Mod/PartDesign/Gui/ViewProvider.cpp index 2b4858b87a..d63ccf8085 100644 --- a/src/Mod/PartDesign/Gui/ViewProvider.cpp +++ b/src/Mod/PartDesign/Gui/ViewProvider.cpp @@ -78,7 +78,8 @@ bool ViewProvider::doubleClicked(void) void ViewProvider::unsetEdit(int ModNum) { // return to the WB we were in before editing the PartDesign feature - Gui::Command::assureWorkbench(oldWb.c_str()); + if (!oldWb.empty()) + Gui::Command::assureWorkbench(oldWb.c_str()); if (ModNum == ViewProvider::Default) { // when pressing ESC make sure to close the dialog