From: dbv Date: Wed, 29 Mar 2017 13:57:24 +0000 (+0300) Subject: Issue #2044: Error detection in the parametric API X-Git-Tag: V_2.7.0~144 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=472652c62dc353ee7a76da2eb0c23b74ca320585;p=modules%2Fshaper.git Issue #2044: Error detection in the parametric API Set attribute invalid flag when selection with bad name passed. --- diff --git a/src/Model/Model_AttributeSelection.cpp b/src/Model/Model_AttributeSelection.cpp index d6c3cf17c..513c39d5c 100644 --- a/src/Model/Model_AttributeSelection.cpp +++ b/src/Model/Model_AttributeSelection.cpp @@ -663,9 +663,11 @@ void Model_AttributeSelection::selectSubShape( } } setValue(aCont, aShapeToBeSelected); + return; } - setInvalidIfFalse(selectionLabel(), false); + TDF_Label aSelLab = selectionLabel(); + setInvalidIfFalse(aSelLab, false); reset(); }