From: apo Date: Tue, 31 May 2005 04:31:29 +0000 (+0000) Subject: When we initialize an instance of SALOME_InteractiveObject from SALOMEDS_SObject... X-Git-Tag: T3_0_0_a1~78 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=304f9aca651b7dcc67ed12c91a38a263caff1557;p=modules%2Fgui.git When we initialize an instance of SALOME_InteractiveObject from SALOMEDS_SObject we should use GetName method, instead of Name. "Name" method is not supported and depricated --- diff --git a/src/SalomeApp/SalomeApp_SelectionMgr.cxx b/src/SalomeApp/SalomeApp_SelectionMgr.cxx index 4394a254f..029323342 100644 --- a/src/SalomeApp/SalomeApp_SelectionMgr.cxx +++ b/src/SalomeApp/SalomeApp_SelectionMgr.cxx @@ -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 ); } }