From: vsv Date: Mon, 24 Aug 2015 16:16:58 +0000 (+0300) Subject: Issue #838: Use only original part results for getting sub-document of a Part (not... X-Git-Tag: V_1.4.0_beta4~270 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=dd49636265af78543a695ce25d16c014ae43a2fd;p=modules%2Fshaper.git Issue #838: Use only original part results for getting sub-document of a Part (not use placement results) --- diff --git a/src/XGUI/XGUI_DataModel.cpp b/src/XGUI/XGUI_DataModel.cpp index 13653e5f3..2f0672cfe 100644 --- a/src/XGUI/XGUI_DataModel.cpp +++ b/src/XGUI/XGUI_DataModel.cpp @@ -37,7 +37,10 @@ ResultPartPtr getPartResult(ModelAPI_Object* theObj) if (aFeature) { ResultPtr aRes = aFeature->firstResult(); if (aRes.get() && (aRes->groupName() == ModelAPI_ResultPart::group())) { - return std::dynamic_pointer_cast(aRes); + ResultPartPtr aPartRes = std::dynamic_pointer_cast(aRes); + // Use only original parts, not a placement results + if (aPartRes == aPartRes->original()) + return aPartRes; } } return ResultPartPtr();