diff options
author | Jan Holesovsky <kendy@collabora.com> | 2019-02-10 11:57:58 +0100 |
---|---|---|
committer | Aron Budea <aron.budea@collabora.com> | 2019-02-10 18:28:00 +0100 |
commit | 6625d5368c367c794fb20e5ba8e460b56120df50 (patch) | |
tree | cc7286930f6b0bcf5385dad9ed44d212ea2ef538 | |
parent | b5f1e2fc89f7c82107378e9c0223a5fdfb0ee86e (diff) |
lok: Fix the font previews in eg. Format -> Character... dialog.
Change-Id: I5d25249c58f55c501e3e5610419753a68423b0f2
Reviewed-on: https://gerrit.libreoffice.org/67612
Reviewed-by: Aron Budea <aron.budea@collabora.com>
Tested-by: Aron Budea <aron.budea@collabora.com>
-rw-r--r-- | vcl/source/window/paint.cxx | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/vcl/source/window/paint.cxx b/vcl/source/window/paint.cxx index 7da91892fc4d..4baaf3e8bf10 100644 --- a/vcl/source/window/paint.cxx +++ b/vcl/source/window/paint.cxx @@ -1395,9 +1395,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(); |