mirror of
https://git.salome-platform.org/gitpub/modules/geom.git
synced 2025-01-15 00:40:36 +05:00
the qstring should be converted to char* with help of toLatin1().constData()
This commit is contained in:
parent
295a129b26
commit
26f1aaf3ed
@ -201,7 +201,7 @@ void GEOMGUI_OCCSelector::setSelection( const SUIT_DataOwnerPtrList& aList )
|
||||
#ifndef WNT
|
||||
if ( indexesMap.IsBound( TCollection_AsciiString(entry.toLatin1().data())))
|
||||
#else
|
||||
if ( indexesMap.IsBound( (char*)entry.toLatin1()))
|
||||
if ( indexesMap.IsBound( entry.toLatin1().data() ) )
|
||||
#endif
|
||||
{
|
||||
TColStd_IndexedMapOfInteger& subIndexes = indexesMap.ChangeFind(entry.toLatin1().data());
|
||||
|
@ -105,7 +105,7 @@ bool GEOMGUI_Selection::isVisible( const int index ) const
|
||||
GEOM::GEOM_Object_var obj = getObject( index );
|
||||
SALOME_View* view = GEOM_Displayer::GetActiveView();
|
||||
if ( !CORBA::is_nil( obj ) && view ) {
|
||||
Handle(SALOME_InteractiveObject) io = new SALOME_InteractiveObject( entry( index ).toLatin1(), "GEOM", "TEMP_IO" );
|
||||
Handle(SALOME_InteractiveObject) io = new SALOME_InteractiveObject( entry( index ).toLatin1().constData(), "GEOM", "TEMP_IO" );
|
||||
return view->isVisible( io );
|
||||
}
|
||||
return false;
|
||||
|
@ -842,7 +842,7 @@ SALOME_Prs* GEOM_Displayer::buildPresentation( const QString& entry,
|
||||
if ( prs )
|
||||
{
|
||||
Handle( SALOME_InteractiveObject ) theIO = new SALOME_InteractiveObject();
|
||||
theIO->setEntry( entry.toLatin1() );
|
||||
theIO->setEntry( entry.toLatin1().constData() );
|
||||
if ( !theIO.IsNull() )
|
||||
{
|
||||
// set interactive object
|
||||
|
Loading…
Reference in New Issue
Block a user