[Libreoffice-commits] .: basebmp/inc
Caolán McNamara
caolan at kemper.freedesktop.org
Fri Nov 4 09:29:10 PDT 2011
basebmp/inc/basebmp/clippedlinerenderer.hxx | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
New commits:
commit be35cbe0d86b416414972754af7dfef9c21bc3b0
Author: Thorsten Behrens <tbehrens at suse.com>
Date: Fri Nov 4 16:11:18 2011 +0100
This looks wrong for sure, too.
diff --git a/basebmp/inc/basebmp/clippedlinerenderer.hxx b/basebmp/inc/basebmp/clippedlinerenderer.hxx
index 9969b96..d1c06f6 100644
--- a/basebmp/inc/basebmp/clippedlinerenderer.hxx
+++ b/basebmp/inc/basebmp/clippedlinerenderer.hxx
@@ -263,9 +263,9 @@ void renderClippedLine( basegfx::B2IPoint aPt1,
prepareClip(x1, x2, y1, adx, ady, xs, ys, sx, sy,
rem, n, clipCode1, clipCount1, clipCode2, clipCount2,
rClipRect.getMinX(), basegfx::tools::RectClipFlags::LEFT,
- rClipRect.getMaxX(), basegfx::tools::RectClipFlags::RIGHT,
+ rClipRect.getMaxX()-1, basegfx::tools::RectClipFlags::RIGHT,
rClipRect.getMinY(), basegfx::tools::RectClipFlags::TOP,
- rClipRect.getMaxY(), basegfx::tools::RectClipFlags::BOTTOM,
+ rClipRect.getMaxY()-1, basegfx::tools::RectClipFlags::BOTTOM,
bRoundTowardsPt2 ));
Iterator currIter( begin + vigra::Diff2D(0,ys) );
@@ -339,9 +339,9 @@ void renderClippedLine( basegfx::B2IPoint aPt1,
prepareClip(y1, y2, x1, ady, adx, ys, xs, sy, sx,
rem, n, clipCode1, clipCount1, clipCode2, clipCount2,
rClipRect.getMinY(), basegfx::tools::RectClipFlags::TOP,
- rClipRect.getMaxY(), basegfx::tools::RectClipFlags::BOTTOM,
+ rClipRect.getMaxY()-1, basegfx::tools::RectClipFlags::BOTTOM,
rClipRect.getMinX(), basegfx::tools::RectClipFlags::LEFT,
- rClipRect.getMaxX(), basegfx::tools::RectClipFlags::RIGHT,
+ rClipRect.getMaxX()-1, basegfx::tools::RectClipFlags::RIGHT,
bRoundTowardsPt2 ));
Iterator currIter( begin + vigra::Diff2D(xs,0) );
More information about the Libreoffice-commits
mailing list