From f9a3c3b79b74be595438ce85d77467b265de8a60 Mon Sep 17 00:00:00 2001 From: isn Date: Thu, 26 Jan 2017 15:37:50 +0300 Subject: [PATCH] draft ver of fix #1107 --- src/HYDROData/HYDROData_Object.cxx | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/src/HYDROData/HYDROData_Object.cxx b/src/HYDROData/HYDROData_Object.cxx index b6165033..4838908a 100644 --- a/src/HYDROData/HYDROData_Object.cxx +++ b/src/HYDROData/HYDROData_Object.cxx @@ -26,6 +26,7 @@ #include #include #include +#include #include @@ -183,8 +184,14 @@ int HYDROData_Object::GetGroupId( const Handle(HYDROData_ShapesGroup)& theGroup { Handle(HYDROData_ShapesGroup) aGroup = Handle(HYDROData_ShapesGroup)::DownCast( aGroups.Value( i ) ); - if ( IsEqual( theGroup, aGroup ) ) - { + + TCollection_AsciiString entry1; + TDF_Tool::Entry(aGroup->Label(),entry1); + + TCollection_AsciiString entry2; + TDF_Tool::Entry(theGroup->Label(),entry2); + + if ( entry1.IsEqual (entry2)/*IsEqual( theGroup, aGroup )*/ ) { aRes = i - 1; break; } -- 2.39.2