From 74ae01369bf521d4b5d72031710204f849d838d6 Mon Sep 17 00:00:00 2001 From: stv Date: Wed, 28 Dec 2005 06:57:45 +0000 Subject: [PATCH] Retriveing dictionary item without specified component. --- src/QDS/QDS_Datum.cxx | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) 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() ) ); -- 2.39.2