From: nds Date: Wed, 6 Apr 2016 15:04:08 +0000 (+0300) Subject: ModuleBase_ViewerPrs is wrapped into shared_ptr. X-Git-Tag: V_2.3.0~284 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=a885f5e329f28cebc6223d36214a7cf4101f471f;p=modules%2Fshaper.git ModuleBase_ViewerPrs is wrapped into shared_ptr. --- diff --git a/src/XGUI/XGUI_SelectionMgr.cpp b/src/XGUI/XGUI_SelectionMgr.cpp index 75ac12685..23a6cbcb7 100755 --- a/src/XGUI/XGUI_SelectionMgr.cpp +++ b/src/XGUI/XGUI_SelectionMgr.cpp @@ -130,12 +130,12 @@ void XGUI_SelectionMgr::onViewerSelection() if (!aContext.IsNull()) { QList aPresentations = selection()->getSelected(ModuleBase_ISelection::Viewer); foreach(ModuleBase_ViewerPrsPtr aPrs, aPresentations) { - if (aPrs.object().get()) { - aFeatures.append(aPrs.object()); - if (aPrs.shape().get()) { - aResult = std::dynamic_pointer_cast(aPrs.object()); + if (aPrs->object().get()) { + aFeatures.append(aPrs->object()); + if (aPrs->shape().get()) { + aResult = std::dynamic_pointer_cast(aPrs->object()); if (aResult.get()) { - aFeature = anActiveDocument->producedByFeature(aResult, aPrs.shape()); + aFeature = anActiveDocument->producedByFeature(aResult, aPrs->shape()); if (aFeature.get() && (!aFeatures.contains(aFeature))) aFeatures.append(aFeature); }