From: isn Date: Thu, 26 Jan 2017 12:37:50 +0000 (+0300) Subject: draft ver of fix #1107 X-Git-Tag: Salome_8_3_Hydro_1_1rc1~58^2~3 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=f9a3c3b79b74be595438ce85d77467b265de8a60;p=modules%2Fhydro.git draft ver of fix #1107 --- 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; }