diff options
Diffstat (limited to 'basegfx')
-rw-r--r-- | basegfx/source/polygon/b2dsvgpolypolygon.cxx | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/basegfx/source/polygon/b2dsvgpolypolygon.cxx b/basegfx/source/polygon/b2dsvgpolypolygon.cxx index 931c3442001f..7a342195256a 100644 --- a/basegfx/source/polygon/b2dsvgpolypolygon.cxx +++ b/basegfx/source/polygon/b2dsvgpolypolygon.cxx @@ -190,9 +190,9 @@ namespace basegfx fValue -= fOldValue; const sal_Int32 aLen( rStr.getLength() ); - if(aLen) + if(aLen > 0) { - if( lcl_isOnNumberChar(rStr.charAt(aLen - 1), false) && + if( lcl_isOnNumberChar(rStr[aLen - 1], false) && fValue >= 0.0 ) { rStr.append( sal_Unicode(' ') ); |