Salome HOME
projects
/
modules
/
gui.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
b7a0228
)
Retriveing dictionary item without specified component.
author
stv
<stv@opencascade.com>
Wed, 28 Dec 2005 06:57:45 +0000
(06:57 +0000)
committer
stv
<stv@opencascade.com>
Wed, 28 Dec 2005 06:57:45 +0000
(06:57 +0000)
src/QDS/QDS_Datum.cxx
patch
|
blob
|
history
diff --git
a/src/QDS/QDS_Datum.cxx
b/src/QDS/QDS_Datum.cxx
index 1af7d56d6076480548226a17646c0ba4bc8f995a..ff3ed8aca976a01e49b6db35694a88d853cb4ae8 100644
(file)
--- 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() ) );