summaryrefslogtreecommitdiff
path: root/basic
diff options
context:
space:
mode:
Diffstat (limited to 'basic')
-rw-r--r--basic/source/sbx/sbxstr.cxx8
1 files changed, 4 insertions, 4 deletions
diff --git a/basic/source/sbx/sbxstr.cxx b/basic/source/sbx/sbxstr.cxx
index bfd2b6223f79..990d1c724338 100644
--- a/basic/source/sbx/sbxstr.cxx
+++ b/basic/source/sbx/sbxstr.cxx
@@ -262,13 +262,13 @@ SbxArray* StringToByteArray(const OUString& rStr)
sal_Int32 nArraySize = rStr.getLength() * 2;
const sal_Unicode* pSrc = rStr.getStr();
SbxDimArray* pArray = new SbxDimArray(SbxBYTE);
+ if( nArraySize )
+ {
#if !HAVE_FEATURE_SCRIPTING
- bool bIncIndex = false;
+ bool bIncIndex = false;
#else
- bool bIncIndex = ( IsBaseIndexOne() && SbiRuntime::isVBAEnabled() );
+ bool bIncIndex = ( IsBaseIndexOne() && SbiRuntime::isVBAEnabled() );
#endif
- if( nArraySize )
- {
if( bIncIndex )
pArray->AddDim32( 1, nArraySize );
else