From: mpv Date: Wed, 9 Nov 2016 12:24:22 +0000 (+0300) Subject: Fix for the issue #1766 : treat face as equal with different orientation to find... X-Git-Tag: V_2.6.0~105 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=aee09da348319d21259bee81c45d00a08f657de0;p=modules%2Fshaper.git Fix for the issue #1766 : treat face as equal with different orientation to find an index in the NamedShape. --- diff --git a/src/Model/Model_SelectionNaming.cpp b/src/Model/Model_SelectionNaming.cpp index b3090cef9..72a660ccb 100644 --- a/src/Model/Model_SelectionNaming.cpp +++ b/src/Model/Model_SelectionNaming.cpp @@ -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;