summaryrefslogtreecommitdiff
path: root/sw
diff options
context:
space:
mode:
authorMiklos Vajna <vmiklos@collabora.co.uk>2015-11-24 15:37:29 +0100
committerMiklos Vajna <vmiklos@collabora.co.uk>2015-11-24 16:23:36 +0100
commit7d6fd383f09426e1471aa8a756e3c398c6895471 (patch)
tree275dff0ec986d2dc7c54e304cdf2385522c57a58 /sw
parent0088ea9850e7f5799e240a7e0b8d62cc45309513 (diff)
sw lok comments: fix map mode state after changing zoom levels
Zoom level of SwEditWin is kept in sync with the client, so that the pixel-based comment widgets can be positioned correctly. But that does not mean in general the SwEditWin map mode should not be disabled: so that we don't have to tweak the map mode for each and every postMouseEvent() call and still be able to send them using logic coordinates. Change-Id: I6f686b93d2509d52fdd34e84a502cf04e1ce6e59 (cherry picked from commit de2a6897876976d769504a36abf54eced626b01c)
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 86d722503575..9112bfbda73f 100644
--- a/sw/source/core/view/viewsh.cxx
+++ b/sw/source/core/view/viewsh.cxx
@@ -1891,6 +1891,8 @@ void SwViewShell::PaintTile(VirtualDevice &rDevice, int contextWidth, int contex
SwViewOption aOption(*GetViewOptions());
aOption.SetZoom(fScale * 100);
ApplyViewOptions(aOption);
+ // Make sure the map mode (disabled in SwXTextDocument::initializeForTiledRendering()) is still disabled.
+ GetWin()->EnableMapMode(false);
}
Rectangle aOutRect = Rectangle(Point(tilePosX, tilePosY),