summaryrefslogtreecommitdiff
path: root/basic
diff options
context:
space:
mode:
authorKurt Zenker <kz@openoffice.org>2008-08-15 13:16:13 +0000
committerKurt Zenker <kz@openoffice.org>2008-08-15 13:16:13 +0000
commit6599c704977dcbe1be703b637ec39dc943502304 (patch)
tree6afb20bb827aa44d38832226ad6babefe2b82355 /basic
parentafd2cf57826bc0294264d721bea7fe5ced18b26c (diff)
INTEGRATION: CWS pflin11 (1.13.22); FILE MERGED
2008/08/05 09:52:43 pflin 1.13.22.1: fix for i91911
Diffstat (limited to 'basic')
-rw-r--r--basic/source/sbx/sbxvalue.cxx6
1 files changed, 3 insertions, 3 deletions
diff --git a/basic/source/sbx/sbxvalue.cxx b/basic/source/sbx/sbxvalue.cxx
index 0bff669935..4dce9be0b7 100644
--- a/basic/source/sbx/sbxvalue.cxx
+++ b/basic/source/sbx/sbxvalue.cxx
@@ -7,7 +7,7 @@
* OpenOffice.org - a multi-platform office productivity suite
*
* $RCSfile: sbxvalue.cxx,v $
- * $Revision: 1.13 $
+ * $Revision: 1.14 $
*
* This file is part of OpenOffice.org.
*
@@ -309,7 +309,7 @@ SbxValue& SbxValue::operator=( const SbxValue& r )
{
// string -> byte array
if( IsFixed() && (aData.eType == SbxOBJECT)
- && aData.pObj && ( aData.pObj->GetType() & (SbxARRAY | SbxBYTE) )
+ && aData.pObj && ( aData.pObj->GetType() == (SbxARRAY | SbxBYTE) )
&& (r.aData.eType == SbxSTRING) )
{
String aStr = r.GetString();
@@ -319,7 +319,7 @@ SbxValue& SbxValue::operator=( const SbxValue& r )
}
// byte array -> string
if( r.IsFixed() && (r.aData.eType == SbxOBJECT)
- && r.aData.pObj && ( r.aData.pObj->GetType() & (SbxARRAY | SbxBYTE) )
+ && r.aData.pObj && ( r.aData.pObj->GetType() == (SbxARRAY | SbxBYTE) )
&& (aData.eType == SbxSTRING) )
{
SbxBase* pObj = r.GetObject();