From aee09da348319d21259bee81c45d00a08f657de0 Mon Sep 17 00:00:00 2001 From: mpv Date: Wed, 9 Nov 2016 15:24:22 +0300 Subject: [PATCH] Fix for the issue #1766 : treat face as equal with different orientation to find an index in the NamedShape. --- src/Model/Model_SelectionNaming.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; -- 2.39.2