Salome HOME
Issue #355 Delete: elements of sketch and constraints:
[modules/shaper.git] / src / Model / Model_AttributeSelection.cpp
index af2ca84621c2ea506c2d2358e5b67fc01ac2c24d..4818b3a5794277107285a80bdf3c3664d3845125 100644 (file)
@@ -174,8 +174,7 @@ bool Model_AttributeSelection::isInitialized()
       TDF_Label aSelLab = selectionLabel();
       if (aSelLab.IsAttribute(kSIMPLE_REF_ID)) { // it is just reference to shape, not sub-shape
         ResultPtr aContext = context();
-        if (!aContext.get()) 
-          return false;
+        return aContext.get();
       }
       if (aSelLab.IsAttribute(kCONSTUCTION_SIMPLE_REF_ID)) { // it is just reference to construction, nothing is in value
           return true;