diff options
author | Caolán McNamara <caolanm@redhat.com> | 2022-09-02 15:34:34 +0100 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2022-09-02 18:10:32 +0200 |
commit | bcbd23e66a00567d17f8651975803b2c213bcb75 (patch) | |
tree | 401f842352e8af4187feb9d05e5f51bd9f6fe3bf /svx | |
parent | 5ad33bf93ca718bc4f33b4e7cf5693d7d6983cc5 (diff) |
ofz#504464 scaling "calculation" timeout
just skip this uninteresting branch
Change-Id: Ida695cccdee8a44b7c2ec089bba8ad95e35c113e
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/139267
Tested-by: Jenkins
Reviewed-by: Caolán McNamara <caolanm@redhat.com>
Diffstat (limited to 'svx')
-rw-r--r-- | svx/source/customshapes/EnhancedCustomShapeFontWork.cxx | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/svx/source/customshapes/EnhancedCustomShapeFontWork.cxx b/svx/source/customshapes/EnhancedCustomShapeFontWork.cxx index c44e63f4bdec..657532a10e62 100644 --- a/svx/source/customshapes/EnhancedCustomShapeFontWork.cxx +++ b/svx/source/customshapes/EnhancedCustomShapeFontWork.cxx @@ -48,6 +48,7 @@ #include <basegfx/polygon/b2dpolygontools.hxx> #include <sal/log.hxx> #include <rtl/math.hxx> +#include <unotools/configmgr.hxx> using namespace com::sun::star; using namespace com::sun::star::uno; @@ -906,6 +907,10 @@ rtl::Reference<SdrObject> EnhancedCustomShapeFontWork::CreateFontWork( { rtl::Reference<SdrObject> pRet; + // calculating scaling factor is too slow + if (utl::ConfigManager::IsFuzzing()) + return pRet; + tools::PolyPolygon aOutlines2d( GetOutlinesFromShape2d( pShape2d ) ); sal_uInt16 nOutlinesCount2d = aOutlines2d.Count(); if ( nOutlinesCount2d ) |