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

Caolán McNamara caolanm at redhat.com
Mon Jun 4 20:30:19 UTC 2018


 vcl/source/font/fontmetric.cxx |    4 ++++
 1 file changed, 4 insertions(+)

New commits:
commit 39e2c1f2a3de68f1a971d14bec31e88a83056924
Author: Caolán McNamara <caolanm at redhat.com>
Date:   Mon Jun 4 21:29:11 2018 +0100

    ofz: fix build
    
    Change-Id: I8b5badc7ad6493b9268d6d141885a6f0bff1baa1

diff --git a/vcl/source/font/fontmetric.cxx b/vcl/source/font/fontmetric.cxx
index b54e41a1202a..4ef24c848ade 100644
--- a/vcl/source/font/fontmetric.cxx
+++ b/vcl/source/font/fontmetric.cxx
@@ -19,6 +19,7 @@
 
 #include <i18nlangtag/mslangid.hxx>
 #include <officecfg/Office/Common.hxx>
+#include <unotools/configmgr.hxx>
 #include <vcl/fontcharmap.hxx>
 #include <vcl/metric.hxx>
 
@@ -403,6 +404,9 @@ void ImplFontMetricData::ImplInitFlags( const OutputDevice* pDev )
 
 bool ImplFontMetricData::ShouldUseWinMetrics(vcl::TTGlobalFontInfo& rInfo)
 {
+    if (utl::ConfigManager::IsFuzzing())
+        return false;
+
     OUString aFontIdentifier(
         GetFamilyName() + ","
         + OUString::number(rInfo.ascender) + "," + OUString::number(rInfo.descender) + ","


More information about the Libreoffice-commits mailing list