summaryrefslogtreecommitdiff
path: root/basegfx/source/tools/stringconversiontools.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'basegfx/source/tools/stringconversiontools.cxx')
-rw-r--r--basegfx/source/tools/stringconversiontools.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/basegfx/source/tools/stringconversiontools.cxx b/basegfx/source/tools/stringconversiontools.cxx
index f8181a625a34..8ea862441ee4 100644
--- a/basegfx/source/tools/stringconversiontools.cxx
+++ b/basegfx/source/tools/stringconversiontools.cxx
@@ -50,7 +50,7 @@ namespace basegfx
sal_Int32& io_rPos,
const OUString& rStr)
{
- sal_Unicode aChar( rStr[io_rPos] );
+ sal_Unicode aChar = io_rPos < rStr.getLength() ? rStr[io_rPos] : 0;
OUStringBuffer sNumberString;
// sign