summaryrefslogtreecommitdiff
path: root/sw
diff options
context:
space:
mode:
authorTor Lillqvist <tml@collabora.com>2013-11-04 10:43:39 +0200
committerJan Holesovsky <kendy@collabora.com>2013-11-15 16:52:05 +0100
commit59397c96585d1fb9828808a63ceabc746b42fc63 (patch)
tree326d2f83558346a0575116d86ae063f5291c0031 /sw
parent294c3e7c20d8cc4381cf36c0769cb447217426d6 (diff)
Call MakeVisible() to "scroll" the requested area into view if necessary
Change-Id: I72673d0529261239600eaf9f480f62c3d3dc85fd
Diffstat (limited to 'sw')
-rw-r--r--sw/source/core/view/viewsh.cxx2
1 files changed, 2 insertions, 0 deletions
diff --git a/sw/source/core/view/viewsh.cxx b/sw/source/core/view/viewsh.cxx
index c9f961691830..70b04692eb22 100644
--- a/sw/source/core/view/viewsh.cxx
+++ b/sw/source/core/view/viewsh.cxx
@@ -1825,6 +1825,8 @@ 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));
+ // scroll the requested area into view if necessary
+ pViewShell->MakeVisible(SwRect(Point(tilePosX, tilePosY), aDevice.PixelToLogic(Size(contextWidth, contextHeight))));
// draw - works in logic coordinates
if (bUseTileSize)
pViewShell->PaintTile(&aDevice, Rectangle(Point(tilePosX, tilePosY), Size(tileWidth, tileHeight)));