[Libreoffice-commits] core.git: Branch 'private/kohei/headless-perf' - vcl/source

Kohei Yoshida kohei.yoshida at collabora.com
Tue May 27 21:46:32 PDT 2014


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

New commits:
commit e39546de92449f1fbe722e54b9dbdffbf7f6c64e
Author: Kohei Yoshida <kohei.yoshida at collabora.com>
Date:   Wed May 28 00:46:30 2014 -0400

    Skip UI font check in headless mode.
    
    Change-Id: I249b5394524bab497d421edb7dae08118c5586c5

diff --git a/vcl/source/window/window.cxx b/vcl/source/window/window.cxx
index f16e6bd..043ee7b 100644
--- a/vcl/source/window/window.cxx
+++ b/vcl/source/window/window.cxx
@@ -1235,6 +1235,9 @@ void Window::CopyDeviceArea( SalTwoRect& aPosAry, sal_uInt32 nFlags )
 
 bool Window::ImplCheckUIFont( const Font& rFont )
 {
+    if (Application::IsHeadlessModeEnabled())
+        return true;
+
     if( ImplGetSVData()->maGDIData.mbNativeFontConfig )
         return true;
 


More information about the Libreoffice-commits mailing list