#include <TopoDS_Shape.hxx>
#include <TDataStd_Integer.hxx>
#include <TDataStd_Real.hxx>
+#include <TDF_Tool.hxx>
#include <QColor>
{
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;
}