[Libreoffice-commits] core.git: vcl/win

Michael Meeks michael.meeks at collabora.com
Thu Oct 1 08:21:45 PDT 2015


 vcl/win/source/gdi/winlayout.cxx |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

New commits:
commit cb81ca35d4d4db27f8bd3322fc16aa73d9cf38bb
Author: Michael Meeks <michael.meeks at collabora.com>
Date:   Thu Oct 1 16:30:06 2015 +0100

    tdf#94428 - don't use OpenGL font rendering when we're printing.
    
    Change-Id: I212bb442bdffa38d77e7e7357199c39420fa7951

diff --git a/vcl/win/source/gdi/winlayout.cxx b/vcl/win/source/gdi/winlayout.cxx
index 66c9dd6..8dace9e 100644
--- a/vcl/win/source/gdi/winlayout.cxx
+++ b/vcl/win/source/gdi/winlayout.cxx
@@ -2492,7 +2492,7 @@ SalLayout* WinSalGraphics::GetTextLayout( ImplLayoutArgs& /*rArgs*/, int nFallba
     const ImplWinFontData& rFontFace = *mpWinFontData[ nFallbackLevel ];
     ImplWinFontEntry& rFontInstance = *mpWinFontEntry[ nFallbackLevel ];
 
-    bool bUseOpenGL = OpenGLHelper::isVCLOpenGLEnabled();
+    bool bUseOpenGL = OpenGLHelper::isVCLOpenGLEnabled() && !mbPrinter;
 
     if (!bUspInited)
         InitUSP();


More information about the Libreoffice-commits mailing list