diff options
Diffstat (limited to 'basebmp')
-rw-r--r-- | basebmp/source/bitmapdevice.cxx | 11 |
1 files changed, 9 insertions, 2 deletions
diff --git a/basebmp/source/bitmapdevice.cxx b/basebmp/source/bitmapdevice.cxx index fb08e322ea62..00fc1c21951c 100644 --- a/basebmp/source/bitmapdevice.cxx +++ b/basebmp/source/bitmapdevice.cxx @@ -339,8 +339,15 @@ namespace { if( !mpDamage ) return; - basegfx::B2IPoint aEnd( rDamagePoint.getX() + 1, - rDamagePoint.getY() + 1 ); + + sal_Int32 nX(rDamagePoint.getX()); + sal_Int32 nY(rDamagePoint.getY()); + if (nX < SAL_MAX_INT32) + ++nX; + if (nY < SAL_MAX_INT32) + ++nY; + + basegfx::B2IPoint aEnd( nX, nY ); damaged( basegfx::B2IBox( rDamagePoint, aEnd ) ); } |