X-Git-Url: http://git.salome-platform.org/gitweb/?a=blobdiff_plain;f=src%2FPartSetPlugin%2FPartSetPlugin_Plugin.cpp;h=f892c57a7f5a6d04675df7d135b32facc2ad95ad;hb=7b4a6a2a335d41a647e0f6a6becb7c23df042be1;hp=c4d50434636509f50168f7a0aef153dd3e96e73b;hpb=3efd29f07fa128246690fd24a3439048b5e95878;p=modules%2Fshaper.git diff --git a/src/PartSetPlugin/PartSetPlugin_Plugin.cpp b/src/PartSetPlugin/PartSetPlugin_Plugin.cpp index c4d504346..f892c57a7 100644 --- a/src/PartSetPlugin/PartSetPlugin_Plugin.cpp +++ b/src/PartSetPlugin/PartSetPlugin_Plugin.cpp @@ -58,8 +58,8 @@ std::shared_ptr PartSetPlugin_Plugin::getFeaturesS { const Events_ID kResponseEvent = Events_Loop::loop()->eventByName(EVENT_FEATURE_STATE_RESPONSE); - std::shared_ptr aMsg = - std::make_shared(kResponseEvent, this); + std::shared_ptr aMsg( + new ModelAPI_FeatureStateMessage(kResponseEvent, this)); std::string aStdDocKind = ModelAPI_Session::get()->activeDocument()->kind(); bool aDocIsPart = (aStdDocKind == PartSetPlugin_Part::ID()); aMsg->setState(PartSetPlugin_Part::ID(), true);