From: sbh Date: Thu, 24 Jul 2014 10:18:52 +0000 (+0400) Subject: bugfix: Crash on finishOperation() call from the python console X-Git-Tag: V_0.4.4~153^2~1 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=a042530bdcecb623c2df9e577e38c61c688897ec;p=modules%2Fshaper.git bugfix: Crash on finishOperation() call from the python console --- 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);