svx/source/customshapes/EnhancedCustomShapeFontWork.cxx | 5 +++++ 1 file changed, 5 insertions(+)
New commits: commit bcbd23e66a00567d17f8651975803b2c213bcb75 Author: Caolán McNamara <caol...@redhat.com> AuthorDate: Fri Sep 2 15:34:34 2022 +0100 Commit: Caolán McNamara <caol...@redhat.com> CommitDate: Fri Sep 2 18:10:32 2022 +0200 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 <caol...@redhat.com> 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 )