From: mpv Date: Thu, 3 Oct 2019 15:59:24 +0000 (+0300) Subject: Minor fix for the issue #3031 X-Git-Tag: V9_4_0a2~4^2~16 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=d89f75e098187bbc135d3d7b0d3a5340cd5c997d;p=modules%2Fshaper.git Minor fix for the issue #3031 --- diff --git a/src/Model/Model_AttributeSelection.cpp b/src/Model/Model_AttributeSelection.cpp index a5ec3df32..c985315b4 100644 --- a/src/Model/Model_AttributeSelection.cpp +++ b/src/Model/Model_AttributeSelection.cpp @@ -1642,7 +1642,8 @@ void Model_AttributeSelection::updateInHistory(bool& theRemove) continue; if (isWholeResult && aNewValues.Value().IsNull()) - if ((*aNewCont)->shape()->shapeType() != allowedType) + if (allowedType != GeomAPI_Shape::SHAPE && + (*aNewCont)->shape()->shapeType() != allowedType) continue; // there is better result exists with the better shape type (issue #3031) GeomShapePtr aValueShape;