diff options
Diffstat (limited to 'basegfx')
-rw-r--r-- | basegfx/source/polygon/b2dsvgpolypolygon.cxx | 12 |
1 files changed, 8 insertions, 4 deletions
diff --git a/basegfx/source/polygon/b2dsvgpolypolygon.cxx b/basegfx/source/polygon/b2dsvgpolypolygon.cxx index ffb04913076e..d9b869b248b8 100644 --- a/basegfx/source/polygon/b2dsvgpolypolygon.cxx +++ b/basegfx/source/polygon/b2dsvgpolypolygon.cxx @@ -88,24 +88,28 @@ namespace basegfx { if (sal_Unicode('.') == aChar) separator_seen = true; sNumberString.append(rStr[io_rPos]); - aChar = rStr[++io_rPos]; + io_rPos++; + aChar = io_rPos < rStr.getLength() ? rStr[io_rPos] : 0; } if(sal_Unicode('e') == aChar || sal_Unicode('E') == aChar) { sNumberString.append(rStr[io_rPos]); - aChar = rStr[++io_rPos]; + io_rPos++; + aChar = io_rPos < rStr.getLength() ? rStr[io_rPos] : 0; if(sal_Unicode('+') == aChar || sal_Unicode('-') == aChar) { sNumberString.append(rStr[io_rPos]); - aChar = rStr[++io_rPos]; + io_rPos++; + aChar = io_rPos < rStr.getLength() ? rStr[io_rPos] : 0; } while(sal_Unicode('0') <= aChar && sal_Unicode('9') >= aChar) { sNumberString.append(rStr[io_rPos]); - aChar = rStr[++io_rPos]; + io_rPos++; + aChar = io_rPos < rStr.getLength() ? rStr[io_rPos] : 0; } } |