]> SALOME platform Git repositories - modules/shaper.git/commitdiff
Salome HOME
Fix for the issue #1766 : treat face as equal with different orientation to find...
authormpv <mpv@opencascade.com>
Wed, 9 Nov 2016 12:24:22 +0000 (15:24 +0300)
committermpv <mpv@opencascade.com>
Wed, 9 Nov 2016 12:24:22 +0000 (15:24 +0300)
src/Model/Model_SelectionNaming.cpp

index b3090cef99080abaee2b0df2839c4f739e28f204..72a660ccbf987f64a482e05ab457bfe36163813b 100644 (file)
@@ -74,7 +74,7 @@ std::string Model_SelectionNaming::getShapeName(
           static const std::string aPostFix("_");
           TNaming_Iterator anItL(aNS);
           for(int i = 1; anItL.More(); anItL.Next(), i++) {
-            if(anItL.NewShape() == theShape) {
+            if(anItL.NewShape().IsSame(theShape)) { // in #1766 IsEqual produced no index of the face
               aName += aPostFix;
               aName += TCollection_AsciiString (i).ToCString();
               break;