From 472652c62dc353ee7a76da2eb0c23b74ca320585 Mon Sep 17 00:00:00 2001 From: dbv Date: Wed, 29 Mar 2017 16:57:24 +0300 Subject: [PATCH] Issue #2044: Error detection in the parametric API Set attribute invalid flag when selection with bad name passed. --- src/Model/Model_AttributeSelection.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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(); } -- 2.39.2