diff options
Diffstat (limited to 'scripting')
-rw-r--r-- | scripting/source/basprov/basscript.cxx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/scripting/source/basprov/basscript.cxx b/scripting/source/basprov/basscript.cxx index f6bac03042e9..3f7ad2209993 100644 --- a/scripting/source/basprov/basscript.cxx +++ b/scripting/source/basprov/basscript.cxx @@ -182,7 +182,7 @@ namespace basprov sal_uInt16 n = 1; for ( const SbxParamInfo* pParamInfo = pInfo->GetParam( n ); pParamInfo; pParamInfo = pInfo->GetParam( ++n ) ) { - if ( ( pParamInfo->nFlags & SBX_OPTIONAL ) != 0 ) + if ( ( pParamInfo->nFlags & SBX_OPTIONAL ) != SBX_NONE ) ++nSbxOptional; else nSbxOptional = 0; |