From: stv Date: Wed, 28 Dec 2005 06:57:45 +0000 (+0000) Subject: Retriveing dictionary item without specified component. X-Git-Tag: T_OCC_development_generic_2006_start~1 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=74ae01369bf521d4b5d72031710204f849d838d6;p=modules%2Fgui.git Retriveing dictionary item without specified component. --- diff --git a/src/QDS/QDS_Datum.cxx b/src/QDS/QDS_Datum.cxx index 1af7d56d6..ff3ed8aca 100644 --- a/src/QDS/QDS_Datum.cxx +++ b/src/QDS/QDS_Datum.cxx @@ -128,7 +128,10 @@ myInitialised( false ) TCollection_AsciiString anId = toAsciiString( id ); TCollection_AsciiString aComp = toAsciiString( comp ); - setDicItem( aDict->GetDicItem( anId, aComp ) ); + if ( aComp.IsEmpty() ) + setDicItem( aDict->GetDicItem( anId ) ); + else + setDicItem( aDict->GetDicItem( anId, aComp ) ); QTimer::singleShot( 0, this, SLOT( onInitDatum() ) );