diff options
author | Miklos Vajna <vmiklos@collabora.co.uk> | 2015-03-23 11:44:50 +0100 |
---|---|---|
committer | Miklos Vajna <vmiklos@collabora.co.uk> | 2015-03-30 09:23:37 +0200 |
commit | 25990dea1c85977935c7c86167e056a483941ac1 (patch) | |
tree | 572fe87044fb52d1c3b7e39d8aff7479cb0cf01b /vcl | |
parent | 79dac94c5d0516a9e0d163b3c7d5f222e6f0725d (diff) |
vcl tiled rendering: fix invalidation callback in Impress
Even if map mode is disabled, we have to check if the map mode is 100th
mm, and if so, do the mm100 -> twips conversion. This was not visible
previously due to the full repaints fixed by commit
7b8a59807806dbf6ec759a836c873b435e09e907 (sd: when tiled rendering,
disable map mode early, 2015-03-20).
Change-Id: I57862b43cc45ef864d7ec05c47b136e534ba2d54
Diffstat (limited to 'vcl')
-rw-r--r-- | vcl/source/window/paint.cxx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/vcl/source/window/paint.cxx b/vcl/source/window/paint.cxx index 480f3897e2bd..f977378a1ab2 100644 --- a/vcl/source/window/paint.cxx +++ b/vcl/source/window/paint.cxx @@ -862,7 +862,7 @@ void Window::Invalidate( sal_uInt16 nFlags ) /// Converts rRectangle from MM100 to twips based on the map mode of rWindow. void lcl_toTwips(const Window& rWindow, Rectangle& rRectangle) { - if (rWindow.IsMapModeEnabled() && rWindow.GetMapMode().GetMapUnit() == MAP_100TH_MM) + if (rWindow.GetMapMode().GetMapUnit() == MAP_100TH_MM) rRectangle = OutputDevice::LogicToLogic(rRectangle, MAP_100TH_MM, MAP_TWIP); } |