Salome HOME
Show the desktop is maximized at first start
[modules/gui.git] / src / SalomeApp / SalomeApp_SelectionMgr.cxx
index 4394a254f25ce453a9e476025d4418f9e958305c..02932334269fccf24efb8ac09131622403220aaa 100644 (file)
@@ -74,7 +74,7 @@ void SalomeApp_SelectionMgr::selectedObjects( SALOME_ListIO& lst ) const
          _PTR(SComponent) aFC (anObj->GetFatherComponent());
          if ( aFC )
          {
-           anIO = new SALOME_InteractiveObject( anObj->GetID().c_str(), aFC->ComponentDataType().c_str(), anObj->Name().c_str() );
+           anIO = new SALOME_InteractiveObject( anObj->GetID().c_str(), aFC->ComponentDataType().c_str(), anObj->GetName().c_str() );
            if ( anIO ) lst.Append( anIO );
          }
        }
@@ -88,7 +88,7 @@ void SalomeApp_SelectionMgr::selectedObjects( SALOME_ListIO& lst ) const
         _PTR(SComponent) aFC (anObj->GetFatherComponent());
         if ( aFC )
         {
-          anIO = new SALOME_InteractiveObject( anObj->GetID().c_str(), aFC->ComponentDataType().c_str(), anObj->Name().c_str() );
+          anIO = new SALOME_InteractiveObject( anObj->GetID().c_str(), aFC->ComponentDataType().c_str(), anObj->GetName().c_str() );
          if ( anIO ) lst.Append( anIO );
         }
       }