Salome HOME
ENV: Windows porting T_3_0_2a1
authorenv <env@opencascade.com>
Fri, 26 Aug 2005 11:00:57 +0000 (11:00 +0000)
committerenv <env@opencascade.com>
Fri, 26 Aug 2005 11:00:57 +0000 (11:00 +0000)
src/SalomeApp/SalomeApp_DataObject.cxx

index 63f39cc615f6c9ae87d3266998185a538564da3a..0e9866fa9dd4069f66d13f3fa72e3541d2b99e8b 100644 (file)
@@ -114,7 +114,7 @@ QString SalomeApp_DataObject::name() const
 
   if ( isReference() )
     {
-      if ( !(QString(referencedObject()->GetName()).isEmpty()) )
+      if ( !(QString(referencedObject()->GetName().c_str()).isEmpty()) )
        str = QString( "* " ) + str;
       else
        str = QString( "<Invalid Reference>" );
@@ -187,7 +187,7 @@ QColor SalomeApp_DataObject::color( const ColorRole cr ) const
   case Text:
     if ( isReference() )
       {
-       if ( !(QString(referencedObject()->GetName()).isEmpty()) )
+       if ( !(QString(referencedObject()->GetName().c_str()).isEmpty()) )
          clr = QColor( 255, 0, 0 );
        else
          clr = QColor( 200, 200, 200 );
@@ -205,7 +205,7 @@ QColor SalomeApp_DataObject::color( const ColorRole cr ) const
   case Highlight:
     if ( isReference() )
       {
-       if ( !(QString(referencedObject()->GetName()).isEmpty()) )
+       if ( !(QString(referencedObject()->GetName().c_str()).isEmpty()) )
          clr = QColor( 255, 0, 0 );
        else
          clr = QColor( 200, 200, 200 );