summaryrefslogtreecommitdiff
path: root/sw
diff options
context:
space:
mode:
authorTor Lillqvist <tml@collabora.com>2013-11-01 14:23:45 +0200
committerJan Holesovsky <kendy@collabora.com>2013-11-15 16:52:01 +0100
commit91e4e3338aaaba31e5e6d358d0644d9a1e785c97 (patch)
tree5d5bad8226065d27113b49391d69ed72707b24a0 /sw
parent1974d99b60a235f39a868347438b4fc5a17db741 (diff)
Pass tilePosX/Y also to PaintTile()
Change-Id: I85360889bf723fa8b603dfbe7a6f99d99c70c72f
Diffstat (limited to 'sw')
-rw-r--r--sw/source/core/view/viewsh.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/sw/source/core/view/viewsh.cxx b/sw/source/core/view/viewsh.cxx
index 2706c67a331c..1cee96568cd2 100644
--- a/sw/source/core/view/viewsh.cxx
+++ b/sw/source/core/view/viewsh.cxx
@@ -1812,7 +1812,7 @@ void touch_lo_draw_tile(void *context, int contextWidth, int contextHeight, MLOD
// resizes the virtual device so to contain the entrie context
aDevice.SetOutputSizePixel(Size(contextWidth, contextHeight));
// draw - works in logic coordinates
- pViewShell->PaintTile(&aDevice, Rectangle(Point(0, 0), Size(tileWidth, tileHeight)));
+ pViewShell->PaintTile(&aDevice, Rectangle(Point(tilePosX, tilePosY), Size(tileWidth, tileHeight)));
// copy the aDevice content to mpImage
Bitmap aBitmap(aDevice.GetBitmap(aDevice.PixelToLogic(Point(0,0)), aDevice.PixelToLogic(Size(contextWidth, contextHeight))));
BitmapReadAccess * readAccess = aBitmap.AcquireReadAccess();