From: mpv Date: Fri, 11 Sep 2015 16:03:35 +0000 (+0300) Subject: Fix for the correct scope calculation X-Git-Tag: V_1.4.0_beta4~9 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=6b51a763f35c08aee6375285e960dbee87267548;p=modules%2Fshaper.git Fix for the correct scope calculation --- diff --git a/src/Model/Model_AttributeSelection.cpp b/src/Model/Model_AttributeSelection.cpp index 883e49508..f97b97e4a 100644 --- a/src/Model/Model_AttributeSelection.cpp +++ b/src/Model/Model_AttributeSelection.cpp @@ -328,7 +328,7 @@ TDF_LabelMap& Model_AttributeSelection::scope() if (aComposite->isSub(*aFIter)) isInScope = true; } - if (aFIter->get() && (*aFIter)->data()->isValid()) { + if (isInScope && aFIter->get() && (*aFIter)->data()->isValid()) { TDF_Label aFeatureLab = std::dynamic_pointer_cast( (*aFIter)->data())->label().Father(); TDF_ChildIDIterator aNSIter(aFeatureLab, TNaming_NamedShape::GetID(), 1);