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

Xisco Fauli xiscofauli at libreoffice.org
Thu Feb 8 15:33:10 UTC 2018


 vcl/source/outdev/text.cxx |    9 +++++++++
 1 file changed, 9 insertions(+)

New commits:
commit c83d2ac99dc3da4ef85b193543a93e02e3858844
Author: Xisco Fauli <xiscofauli at libreoffice.org>
Date:   Mon Feb 5 16:51:59 2018 +0100

    tdf#112990: Hack-around: Do not crash on mac with opengl enabled
    
    Change-Id: Id8d1ffe593fa42b7e37e26e8d66ffad87d6685c1
    Reviewed-on: https://gerrit.libreoffice.org/49251
    Tested-by: Jenkins <ci at libreoffice.org>
    Reviewed-by: Tamás Bunth <btomi96 at gmail.com>

diff --git a/vcl/source/outdev/text.cxx b/vcl/source/outdev/text.cxx
index a17b6306d88a..d2ada019fef7 100644
--- a/vcl/source/outdev/text.cxx
+++ b/vcl/source/outdev/text.cxx
@@ -34,6 +34,7 @@
 #include <vcl/sysdata.hxx>
 #include <vcl/unohelp.hxx>
 #include <vcl/controllayout.hxx>
+#include <vcl/opengl/OpenGLHelper.hxx>
 
 #include <outdata.hxx>
 #include <outdev.h>
@@ -863,6 +864,14 @@ void OutputDevice::DrawText( const Point& rStartPt, const OUString& rStr,
         if(mpFontInstance->mpConversion)
             pLayoutCache = nullptr;
 
+    #ifdef MACOSX
+        // FIXME: tdf#112990
+        // Cache text layout crashes on mac with OpenGL enabled
+        // Force it to not use the cache
+        if(OpenGLHelper::isVCLOpenGLEnabled())
+            pLayoutCache = nullptr;
+    #endif
+
     // without cache
     if(!pLayoutCache)
     {


More information about the Libreoffice-commits mailing list