[Libreoffice-commits] core.git: Branch 'feature/opengl-vcl' - vcl/unx

Jan Holesovsky kendy at collabora.com
Sat Nov 15 05:46:43 PST 2014


 vcl/unx/generic/app/saldisp.cxx |   13 ++++++++++---
 1 file changed, 10 insertions(+), 3 deletions(-)

New commits:
commit 780616de98c0cee74e1ca4a0da6fb513c1c94ed9
Author: Jan Holesovsky <kendy at collabora.com>
Date:   Fri Nov 14 17:04:25 2014 +0100

    vcl: Stop-gap solution to start the gen / kde / kde4 plugins again.
    
    Change-Id: Ie538049aa8c4c0812d28b5c1bf91425822c55617

diff --git a/vcl/unx/generic/app/saldisp.cxx b/vcl/unx/generic/app/saldisp.cxx
index 159263a..c381dd9 100644
--- a/vcl/unx/generic/app/saldisp.cxx
+++ b/vcl/unx/generic/app/saldisp.cxx
@@ -73,6 +73,7 @@
 #include <poll.h>
 #include <boost/scoped_array.hpp>
 
+#include <com/sun/star/uno/DeploymentException.hpp>
 #include <officecfg/Office/Common.hxx>
 
 using namespace vcl_sal;
@@ -191,9 +192,15 @@ bool SalDisplay::BestVisual( Display     *pDisplay,
     if( nVID && sal_GetVisualInfo( pDisplay, nVID, rVI ) )
         return rVI.visualid == nDefVID;
 
-    bool bUseOpenGL = officecfg::Office::Common::VCL::UseOpenGL::get();
-    if( bUseOpenGL && OpenGLHelper::GetVisualInfo( pDisplay, nScreen, rVI ) )
-        return rVI.visualid == nDefVID;
+    try {
+        bool bUseOpenGL = officecfg::Office::Common::VCL::UseOpenGL::get();
+        if( bUseOpenGL && OpenGLHelper::GetVisualInfo( pDisplay, nScreen, rVI ) )
+            return rVI.visualid == nDefVID;
+    }
+    catch (const css::uno::DeploymentException&)
+    {
+        // too early to try to access configmgr
+    }
 
     XVisualInfo aVI;
     aVI.screen = nScreen;


More information about the Libreoffice-commits mailing list