vcl/source/window/paint.cxx |    4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

New commits:
commit 8c28bc32de753b403760bf79cb0415988ab0d89f
Author:     Jan Holesovsky <ke...@collabora.com>
AuthorDate: Sun Feb 10 11:57:58 2019 +0100
Commit:     Jan Holesovsky <ke...@collabora.com>
CommitDate: Fri Feb 15 22:53:28 2019 +0100

    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 <ke...@collabora.com>

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();
_______________________________________________
Libreoffice-commits mailing list
libreoffice-comm...@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/libreoffice-commits

Reply via email to