]> SALOME platform Git repositories - modules/hydro.git/commitdiff
Salome HOME
draft ver of fix #1107
authorisn <isn@opencascade.com>
Thu, 26 Jan 2017 12:37:50 +0000 (15:37 +0300)
committerisn <isn@opencascade.com>
Thu, 26 Jan 2017 12:37:50 +0000 (15:37 +0300)
src/HYDROData/HYDROData_Object.cxx

index b6165033c40d2fd535765156092af5034243d8a6..4838908a9f5c7bb25a332615ff42eb9f3c059d3b 100644 (file)
@@ -26,6 +26,7 @@
 #include <TopoDS_Shape.hxx>
 #include <TDataStd_Integer.hxx>
 #include <TDataStd_Real.hxx>
+#include <TDF_Tool.hxx>
 
 #include <QColor>
 
@@ -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;
     }