X-Git-Url: http://git.salome-platform.org/gitweb/?a=blobdiff_plain;f=src%2FPartSetPlugin%2FPartSetPlugin_Part.cpp;h=4eee01130ea56cad1a35f415f88a224171b7bc55;hb=f9426a402de748e9d13085856a7cf72a3659135d;hp=8ec96b44904ef820b1a998f813823f03148b4c47;hpb=87b6a30a3afb8fb32e7e43ade8d9c947d9eb1684;p=modules%2Fshaper.git diff --git a/src/PartSetPlugin/PartSetPlugin_Part.cpp b/src/PartSetPlugin/PartSetPlugin_Part.cpp index 8ec96b449..4eee01130 100644 --- a/src/PartSetPlugin/PartSetPlugin_Part.cpp +++ b/src/PartSetPlugin/PartSetPlugin_Part.cpp @@ -42,7 +42,9 @@ void PartSetPlugin_Part::execute() setResult(aResult); // do not activate part by simple execution if it is not loaded yet: it must be explicitly // activated for this - if (!ModelAPI_Session::get()->isLoadByDemand(aResult->data()->name())) { + std::shared_ptr aDocRef = + aResult->data()->document(ModelAPI_ResultPart::DOC_REF()); + if (!ModelAPI_Session::get()->isLoadByDemand(aResult->data()->name(), aDocRef->docId())) { // On undo/redo creation of the part result the Object Browser must get creation event // earlier that activation of this part event (otherwise the crash is produced) // So, send a creation event earlier, without any grouping