summaryrefslogtreecommitdiff
path: root/vcl
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2018-03-06 10:23:06 +0000
committerCaolán McNamara <caolanm@redhat.com>2018-03-06 21:39:09 +0100
commit0c8e2d204f5225c0438da0046898cd92db3b7730 (patch)
tree7c3e904c7ea2537233d22b4d7da97e3b6034ece9 /vcl
parent6e90bcdcd918a44f94f77098c54ed264a939c43c (diff)
ofz: timeout
Change-Id: I95806c4987cd2d3b745e57d94b94ffd6e3f6227e Reviewed-on: https://gerrit.libreoffice.org/50813 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Caolán McNamara <caolanm@redhat.com> Tested-by: Caolán McNamara <caolanm@redhat.com>
Diffstat (limited to 'vcl')
-rw-r--r--vcl/inc/CommonSalLayout.hxx1
-rw-r--r--vcl/source/gdi/CommonSalLayout.cxx7
2 files changed, 7 insertions, 1 deletions
diff --git a/vcl/inc/CommonSalLayout.hxx b/vcl/inc/CommonSalLayout.hxx
index 0947f9eaba2c..3b6e61308248 100644
--- a/vcl/inc/CommonSalLayout.hxx
+++ b/vcl/inc/CommonSalLayout.hxx
@@ -75,6 +75,7 @@ class VCL_DLLPUBLIC CommonSalLayout : public GenericSalLayout
void getScale(double* nXScale, double* nYScale);
hb_set_t* mpVertGlyphs;
+ bool mbFuzzing;
bool HasVerticalAlternate(sal_UCS4 aChar, sal_UCS4 aNextChar);
void SetNeedFallback(ImplLayoutArgs&, sal_Int32, bool);
diff --git a/vcl/source/gdi/CommonSalLayout.cxx b/vcl/source/gdi/CommonSalLayout.cxx
index fe557ac9c78b..de701febe63b 100644
--- a/vcl/source/gdi/CommonSalLayout.cxx
+++ b/vcl/source/gdi/CommonSalLayout.cxx
@@ -20,6 +20,7 @@
#include <memory>
#include <CommonSalLayout.hxx>
+#include <unotools/configmgr.hxx>
#include <vcl/unohelp.hxx>
#include <scrptrun.h>
#include <com/sun/star/i18n/CharacterIteratorMode.hpp>
@@ -193,6 +194,7 @@ CommonSalLayout::CommonSalLayout(HDC hDC, WinFontInstance& rWinFontInstance, con
, mrWinFontInstance(rWinFontInstance)
, mnAveWidthFactor(1.0f)
, mpVertGlyphs(nullptr)
+, mbFuzzing(utl::ConfigManager::IsFuzzing())
{
mpHbFont = rWinFontFace.GetHbFont();
if (!mpHbFont)
@@ -240,6 +242,7 @@ CommonSalLayout::CommonSalLayout(const CoreTextStyle& rCoreTextStyle)
: mrFontSelData(rCoreTextStyle.maFontSelData)
, mrCoreTextStyle(rCoreTextStyle)
, mpVertGlyphs(nullptr)
+, mbFuzzing(utl::ConfigManager::IsFuzzing())
{
mpHbFont = rCoreTextStyle.GetHbFont();
if (!mpHbFont)
@@ -283,6 +286,7 @@ CommonSalLayout::CommonSalLayout(const FontSelectPattern &rFSP,
, mbUseQt5(bUseQt5)
, mpQFont(pQt5Font)
, mpVertGlyphs(nullptr)
+ , mbFuzzing(utl::ConfigManager::IsFuzzing())
{
if (mbUseQt5)
{
@@ -321,6 +325,7 @@ CommonSalLayout::CommonSalLayout(FreetypeFont& rFreetypeFont)
: mrFontSelData(rFreetypeFont.GetFontSelData())
, mpFreetypeFont(&rFreetypeFont)
, mpVertGlyphs(nullptr)
+ , mbFuzzing(utl::ConfigManager::IsFuzzing())
{
InitFromFreetypeFont();
}
@@ -425,7 +430,7 @@ std::shared_ptr<vcl::TextLayoutCache> CommonSalLayout::CreateTextLayoutCache(OUS
void CommonSalLayout::SetNeedFallback(ImplLayoutArgs& rArgs, sal_Int32 nCharPos, bool bRightToLeft)
{
- if (nCharPos < 0)
+ if (nCharPos < 0 || mbFuzzing)
return;
using namespace ::com::sun::star;