From a042530bdcecb623c2df9e577e38c61c688897ec Mon Sep 17 00:00:00 2001 From: sbh Date: Thu, 24 Jul 2014 14:18:52 +0400 Subject: [PATCH] bugfix: Crash on finishOperation() call from the python console --- src/XGUI/XGUI_Workshop.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/XGUI/XGUI_Workshop.cpp b/src/XGUI/XGUI_Workshop.cpp index 0ca48658f..419cfc532 100644 --- a/src/XGUI/XGUI_Workshop.cpp +++ b/src/XGUI/XGUI_Workshop.cpp @@ -329,7 +329,9 @@ void XGUI_Workshop::onFeatureCreatedMsg(const ModelAPI_ObjectUpdatedMessage* the ResultPartPtr aPart = boost::dynamic_pointer_cast(*aIt); if (aPart) { aHasPart = true; - } else { + // If a feature is created from the aplication's python console + // it doesn't stored in the operation mgr and doesn't displayed + } else if(myOperationMgr->hasOperation()) { ModuleBase_Operation* aOperation = myOperationMgr->currentOperation(); if (aOperation->hasObject(*aIt)) { // Display only current operation results myDisplayer->display(*aIt, false); -- 2.39.2