summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--vcl/unx/generic/app/saldisp.cxx13
1 files changed, 10 insertions, 3 deletions
diff --git a/vcl/unx/generic/app/saldisp.cxx b/vcl/unx/generic/app/saldisp.cxx
index d3aca4f158da..ffd12d75427f 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;