summaryrefslogtreecommitdiff
path: root/vcl
diff options
context:
space:
mode:
authorJan Holesovsky <kendy@collabora.com>2019-02-10 11:57:58 +0100
committerJan Holesovsky <kendy@collabora.com>2019-02-15 22:53:28 +0100
commit8c28bc32de753b403760bf79cb0415988ab0d89f (patch)
treec1fa005877f81c075bdeb6bc3e1b5d60dce56da9 /vcl
parent802e77dd4fe0192942a493b4c83e2c8b31c210c2 (diff)
lok: Fix the font previews in eg. Format -> Character... dialog.
Change-Id: I5d25249c58f55c501e3e5610419753a68423b0f2 Reviewed-on: https://gerrit.libreoffice.org/67613 Tested-by: Jenkins Reviewed-by: Jan Holesovsky <kendy@collabora.com>
Diffstat (limited to 'vcl')
-rw-r--r--vcl/source/window/paint.cxx4
1 files changed, 3 insertions, 1 deletions
diff --git a/vcl/source/window/paint.cxx b/vcl/source/window/paint.cxx
index ea8216bc7313..bcbb294e92e4 100644
--- a/vcl/source/window/paint.cxx
+++ b/vcl/source/window/paint.cxx
@@ -1386,9 +1386,11 @@ void Window::ImplPaintToDevice( OutputDevice* i_pTargetOutDev, const Point& i_rP
if (!IsPaintTransparent() && IsBackground() && ! (GetParentClipMode() & ParentClipMode::NoClip))
Erase(*pDevice);
+ pDevice->SetMapMode(GetMapMode());
+
Paint(*pDevice, tools::Rectangle(Point(), GetOutputSizePixel()));
- i_pTargetOutDev->DrawOutDev(i_rPos, aSize, Point(), aSize, *pDevice);
+ i_pTargetOutDev->DrawOutDev(i_rPos, aSize, Point(), pDevice->PixelToLogic(aSize), *pDevice);
// get rid of virtual device now so they don't pile up during recursive calls
pDevice.disposeAndClear();