diff options
Diffstat (limited to 'svl')
-rw-r--r-- | svl/source/numbers/zformat.cxx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/svl/source/numbers/zformat.cxx b/svl/source/numbers/zformat.cxx index 2cd92827f420..b4c58cc58127 100644 --- a/svl/source/numbers/zformat.cxx +++ b/svl/source/numbers/zformat.cxx @@ -1411,7 +1411,7 @@ short SvNumberformat::ImpNextSymbol(OUStringBuffer& rString, nLen--; break; case '$' : - if ( rString[nPos] == '-' ) + if ( nPos < nLen && rString[nPos] == '-' ) { // [$-xxx] locale sBuffSymbol.stripStart('['); |