]> SALOME platform Git repositories - modules/shaper.git/blobdiff - src/Model/Model_ResultPart.cpp
Salome HOME
Fix for the selection of faces in part from PartSet.
[modules/shaper.git] / src / Model / Model_ResultPart.cpp
index f70deecced5c8d4c89507ed48eca4a85f4652cdf..b8fb440d742ac10ce1390ccb52057722e993008a 100644 (file)
@@ -285,7 +285,7 @@ std::string Model_ResultPart::nameInPart(const std::shared_ptr<GeomAPI_Shape>& t
       TopoDS_Shape aBodyShape = *(aBody->shape()->implPtr<TopoDS_Shape>());
       // check is body contain the selected sub-shape
       for(TopExp_Explorer anExp(aBodyShape, aShape.ShapeType()); anExp.More(); anExp.Next()) {
-        if (aShape.IsEqual(anExp.Current())) {
+        if (aShape.IsSame(anExp.Current())) {
           aContext = aBody;
           break;
         }