]> SALOME platform Git repositories - modules/shaper.git/commitdiff
Salome HOME
Fix for the correct scope calculation
authormpv <mpv@opencascade.com>
Fri, 11 Sep 2015 16:03:35 +0000 (19:03 +0300)
committermpv <mpv@opencascade.com>
Fri, 11 Sep 2015 16:03:35 +0000 (19:03 +0300)
src/Model/Model_AttributeSelection.cpp

index 883e49508f529ae5ad84f998536263facd036aee..f97b97e4a15f5f87bbd89711529ae55e84c430b5 100644 (file)
@@ -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<Model_Data>(
           (*aFIter)->data())->label().Father();
         TDF_ChildIDIterator aNSIter(aFeatureLab, TNaming_NamedShape::GetID(), 1);