vcl/source/outdev/line.cxx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)
New commits: commit fb4c953cac6eeb3b0c7b3832facfe3a82092e69f Author: Caolán McNamara <caol...@redhat.com> AuthorDate: Mon Jan 30 10:10:12 2023 +0000 Commit: Caolán McNamara <caol...@redhat.com> CommitDate: Mon Jan 30 16:56:37 2023 +0000 ofz#55466 Out-of-memory Change-Id: I457525056082e97550f2c78e1cc7d2084515b71b Reviewed-on: https://gerrit.libreoffice.org/c/core/+/146344 Tested-by: Jenkins Reviewed-by: Caolán McNamara <caol...@redhat.com> diff --git a/vcl/source/outdev/line.cxx b/vcl/source/outdev/line.cxx index b6750ac9a41c..92545a69d8d8 100644 --- a/vcl/source/outdev/line.cxx +++ b/vcl/source/outdev/line.cxx @@ -224,6 +224,7 @@ void OutputDevice::DrawLine( const Point& rStartPt, const Point& rEndPt ) void OutputDevice::drawLine( basegfx::B2DPolyPolygon aLinePolyPolygon, const LineInfo& rInfo ) { + static const bool bFuzzing = utl::ConfigManager::IsFuzzing(); const bool bTryB2d(mpGraphics->supportsOperation(OutDevSupportType::B2DDraw) && RasterOp::OverPaint == GetRasterOp() && IsLineColor()); @@ -231,7 +232,7 @@ void OutputDevice::drawLine( basegfx::B2DPolyPolygon aLinePolyPolygon, const Lin const bool bDashUsed(LineStyle::Dash == rInfo.GetStyle()); const bool bLineWidthUsed(rInfo.GetWidth() > 1); - if(bDashUsed && aLinePolyPolygon.count()) + if (!bFuzzing && bDashUsed && aLinePolyPolygon.count()) { ::std::vector< double > fDotDashArray = rInfo.GetDotDashArray(); const double fAccumulated(::std::accumulate(fDotDashArray.begin(), fDotDashArray.end(), 0.0)); @@ -340,7 +341,6 @@ void OutputDevice::drawLine( basegfx::B2DPolyPolygon aLinePolyPolygon, const Lin if(!bDone) { - static const bool bFuzzing = utl::ConfigManager::IsFuzzing(); if (bFuzzing) { const basegfx::B2DRange aRange(basegfx::utils::getRange(aFillPolyPolygon));