drawinglayer/source/processor2d/cairopixelprocessor2d.cxx | 2 ++ 1 file changed, 2 insertions(+)
New commits: commit 2fab731ec22ac371c649831b795f7d43a82db693 Author: Noel Grandin <[email protected]> AuthorDate: Thu Oct 23 13:11:27 2025 +0200 Commit: Caolán McNamara <[email protected]> CommitDate: Thu Oct 23 18:47:00 2025 +0200 crashtesting fdo62899-1.svg after commit 5707b5dce7547420a154209d06b444f1cb863d60 Author: Noel Grandin <[email protected]> Date: Tue Oct 14 15:53:59 2025 +0200 tdf#101083 speed up SVG rendering with pattern fill (2) Apparently mpTargetOutputDevice is nullptr when run on the crashtesting machine, but I dont see that on my machine. Change-Id: Ic281e2245524f330002f10d5271c3075fdfc1ab1 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/192908 Reviewed-by: Caolán McNamara <[email protected]> Tested-by: Caolán McNamara <[email protected]> diff --git a/drawinglayer/source/processor2d/cairopixelprocessor2d.cxx b/drawinglayer/source/processor2d/cairopixelprocessor2d.cxx index 58b2629db59a..fce75417ac0c 100644 --- a/drawinglayer/source/processor2d/cairopixelprocessor2d.cxx +++ b/drawinglayer/source/processor2d/cairopixelprocessor2d.cxx @@ -3455,6 +3455,8 @@ void CairoPixelProcessor2D::processFillGradientPrimitive2D( void CairoPixelProcessor2D::processPatternFillPrimitive2D( const primitive2d::PatternFillPrimitive2D& rPrimitive) { + if (!mpTargetOutputDevice) + return; const basegfx::B2DRange& rReferenceRange = rPrimitive.getReferenceRange(); if (rReferenceRange.isEmpty() || rReferenceRange.getWidth() <= 0.0 || rReferenceRange.getHeight() <= 0.0)
