summaryrefslogtreecommitdiff
path: root/emfio/source
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2021-07-25 12:13:48 +0100
committerCaolán McNamara <caolanm@redhat.com>2021-07-25 15:42:16 +0200
commit5d83e940f7636050891f52929ace29650025cd36 (patch)
tree09d37e10c5fc8c6bec90b2cfb13c08480b8c9535 /emfio/source
parent60fc68e547cf70f82e681c9a17b4f3e5c124aa39 (diff)
ofz#36481 Timeout
Change-Id: I0de9bf0a8b83af83ba31bdb75497e13ada4f7f4c Reviewed-on: https://gerrit.libreoffice.org/c/core/+/119480 Tested-by: Jenkins Reviewed-by: Caolán McNamara <caolanm@redhat.com>
Diffstat (limited to 'emfio/source')
-rw-r--r--emfio/source/reader/emfreader.cxx9
1 files changed, 6 insertions, 3 deletions
diff --git a/emfio/source/reader/emfreader.cxx b/emfio/source/reader/emfreader.cxx
index 1b9e8ec34326..c0aecda9f680 100644
--- a/emfio/source/reader/emfreader.cxx
+++ b/emfio/source/reader/emfreader.cxx
@@ -370,9 +370,12 @@ bool ImplReadRegion( basegfx::B2DPolyPolygon& rPolyPoly, SvStream& rStream, sal_
rPolyPoly.append( basegfx::utils::createPolygonFromRect( ::basegfx::B2DRectangle( nLeft, nTop, nRight, nBottom ) ) );
SAL_INFO("emfio", "\t\t" << i << " Left: " << nLeft << ", top: " << nTop << ", right: " << nRight << ", bottom: " << nBottom);
}
- rPolyPoly = basegfx::utils::solveCrossovers(rPolyPoly);
- rPolyPoly = basegfx::utils::stripNeutralPolygons(rPolyPoly);
- rPolyPoly = basegfx::utils::stripDispensablePolygons(rPolyPoly);
+ if (!utl::ConfigManager::IsFuzzing())
+ {
+ rPolyPoly = basegfx::utils::solveCrossovers(rPolyPoly);
+ rPolyPoly = basegfx::utils::stripNeutralPolygons(rPolyPoly);
+ rPolyPoly = basegfx::utils::stripDispensablePolygons(rPolyPoly);
+ }
return true;
}