diff options
author | Caolán McNamara <caolanm@redhat.com> | 2022-07-20 11:11:16 +0100 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2022-07-20 18:05:03 +0200 |
commit | 779fc912b21102b6aed4109dc6b5d3f5937d2b4d (patch) | |
tree | aeeb98b6d41dce60212a3d75e998dc7ccd54933b /svx | |
parent | 2d466a95fc3c35c7ef00e6d6d8b97d4721372173 (diff) |
ofz#49200 Timeout
disable slow path for fuzzing
Change-Id: Ic23d7ba56210915b53b4330edb44458a672ba4ea
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/137255
Tested-by: Caolán McNamara <caolanm@redhat.com>
Reviewed-by: Caolán McNamara <caolanm@redhat.com>
Diffstat (limited to 'svx')
-rw-r--r-- | svx/source/customshapes/EnhancedCustomShape3d.cxx | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/svx/source/customshapes/EnhancedCustomShape3d.cxx b/svx/source/customshapes/EnhancedCustomShape3d.cxx index 731f8208d2f6..04d685c62122 100644 --- a/svx/source/customshapes/EnhancedCustomShape3d.cxx +++ b/svx/source/customshapes/EnhancedCustomShape3d.cxx @@ -47,6 +47,7 @@ #include <com/sun/star/drawing/EnhancedCustomShapeParameterPair.hpp> #include <com/sun/star/drawing/EnhancedCustomShapeMetalType.hpp> #include <com/sun/star/drawing/ProjectionMode.hpp> +#include <basegfx/color/bcolor.hxx> #include <basegfx/polygon/b2dpolypolygontools.hxx> #include <basegfx/polygon/b3dpolygon.hxx> #include <basegfx/range/b2drange.hxx> @@ -56,7 +57,7 @@ #include <svx/xlnwtit.hxx> #include <svx/xlntrit.hxx> #include <svx/xfltrit.hxx> -#include <basegfx/color/bcolor.hxx> +#include <unotools/configmgr.hxx> using namespace com::sun::star; using namespace com::sun::star::uno; @@ -350,6 +351,7 @@ SdrObject* EnhancedCustomShape3d::Create3DObject( basegfx::B2DPolyPolygon aTotalPolyPoly; SdrObjListIter aIter( *pShape2d, SdrIterMode::DeepNoGroups ); const bool bMultipleSubObjects(aIter.Count() > 1); + const bool bFuzzing(utl::ConfigManager::IsFuzzing()); while( aIter.IsMore() ) { @@ -394,7 +396,7 @@ SdrObject* EnhancedCustomShape3d::Create3DObject( } } - if(bNeedToConvertToContour) + if (bNeedToConvertToContour && !bFuzzing) { SdrObject* pNewObj = pNext->ConvertToContourObj(const_cast< SdrObject* >(pNext)); SdrPathObj* pNewPathObj = dynamic_cast< SdrPathObj* >(pNewObj); |