]> SALOME platform Git repositories - modules/shaper.git/commitdiff
Salome HOME
Issue #2044: Error detection in the parametric API
authordbv <dbv@opencascade.com>
Wed, 29 Mar 2017 13:57:24 +0000 (16:57 +0300)
committerdbv <dbv@opencascade.com>
Wed, 29 Mar 2017 13:57:24 +0000 (16:57 +0300)
Set attribute invalid flag when selection with bad name passed.

src/Model/Model_AttributeSelection.cpp

index d6c3cf17c55afe2468a03ac9001b3f2e519e11f0..513c39d5c65b0afcc68d5d6793bed57ec070da0c 100644 (file)
@@ -663,9 +663,11 @@ void Model_AttributeSelection::selectSubShape(
       }
     }
     setValue(aCont, aShapeToBeSelected);
+    return;
   }
 
-  setInvalidIfFalse(selectionLabel(), false);
+  TDF_Label aSelLab = selectionLabel();
+  setInvalidIfFalse(aSelLab, false);
   reset();
 }