From 6b51a763f35c08aee6375285e960dbee87267548 Mon Sep 17 00:00:00 2001 From: mpv Date: Fri, 11 Sep 2015 19:03:35 +0300 Subject: [PATCH] Fix for the correct scope calculation --- src/Model/Model_AttributeSelection.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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); -- 2.39.2