From 8c28bc32de753b403760bf79cb0415988ab0d89f Mon Sep 17 00:00:00 2001 From: Jan Holesovsky Date: Sun, 10 Feb 2019 11:57:58 +0100 Subject: 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 --- vcl/source/window/paint.cxx | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'vcl') 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(); -- cgit