summaryrefslogtreecommitdiff
path: root/automation
diff options
context:
space:
mode:
authorOliver Bolte <obo@openoffice.org>2004-09-09 16:23:02 +0000
committerOliver Bolte <obo@openoffice.org>2004-09-09 16:23:02 +0000
commit359a2b0ee649307a1debe464206d1587cfca1b5a (patch)
tree79546e8f352bf3ccc110cb6321d2212445480026 /automation
parent159dfcafba6867234782641258ab8f938334d18a (diff)
INTEGRATION: CWS toolbars2 (1.2.10); FILE MERGED
2004/08/10 13:41:34 gh 1.2.10.2: #i32516#using new SmartIds in Testtool 2004/08/09 08:24:57 gh 1.2.10.1: #i32449#use SmartId from VCL
Diffstat (limited to 'automation')
-rw-r--r--automation/source/server/retstrm.cxx11
1 files changed, 6 insertions, 5 deletions
diff --git a/automation/source/server/retstrm.cxx b/automation/source/server/retstrm.cxx
index cdc2249d43b7..f25ea8658d6c 100644
--- a/automation/source/server/retstrm.cxx
+++ b/automation/source/server/retstrm.cxx
@@ -2,9 +2,9 @@
*
* $RCSfile: retstrm.cxx,v $
*
- * $Revision: 1.2 $
+ * $Revision: 1.3 $
*
- * last change: $Author: obo $ $Date: 2004-07-06 12:05:00 $
+ * last change: $Author: obo $ $Date: 2004-09-09 17:23:02 $
*
* The Contents of this file are made available subject to the terms of
* either of the following licenses
@@ -129,13 +129,14 @@ void RetStream::Write( SbxValue &aValue )
void RetStream::Write( SmartId* pId )
{
- if ( pId->IsNumeric() )
- Write( pId->GetNum() );
- else
+ DBG_ASSERT( !pId->HasString() || !pId->HasNumeric(), "SmartId contains Number and String. using String only." )
+ if ( pId->HasString() )
{
String aTmp( pId->GetStr() );
Write( &aTmp );
}
+ else
+ Write( pId->GetNum() );
}