From a885f5e329f28cebc6223d36214a7cf4101f471f Mon Sep 17 00:00:00 2001 From: nds Date: Wed, 6 Apr 2016 18:04:08 +0300 Subject: [PATCH] ModuleBase_ViewerPrs is wrapped into shared_ptr. --- src/XGUI/XGUI_SelectionMgr.cpp | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) 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); } -- 2.39.2