sdext/source/pdfimport/tree/pdfiprocessor.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
New commits: commit 2f2f56f47f7ce8f7cdd581a6831ac9c3d7ce3be4 Author: Dr. David Alan Gilbert <d...@treblig.org> AuthorDate: Sat Jul 5 01:52:21 2025 +0100 Commit: David Gilbert <d...@treblig.org> CommitDate: Fri Jul 11 00:32:25 2025 +0200 sdext,pdfimport: Fix stroke clipping The bounding clipping I added back in: abfbca271976 ("tdf#85428: Clip strokes") breaks 'thick' closed polygons, losing the closed flag. That's fixed by changing the bStroke flag to the clipper like done in svdpdf.cxx and svdfmtf.cxx This fixes the rendering of the top right box in: https://gitlab.freedesktop.org/poppler/poppler/-/issues/178 Change-Id: Ib2ef27bef9860420b231cceaa2b0568c443d7f2e Reviewed-on: https://gerrit.libreoffice.org/c/core/+/187435 Tested-by: Jenkins Reviewed-by: David Gilbert <freedesk...@treblig.org> diff --git a/sdext/source/pdfimport/tree/pdfiprocessor.cxx b/sdext/source/pdfimport/tree/pdfiprocessor.cxx index 14912c4e4443..0a45cf0d96bd 100644 --- a/sdext/source/pdfimport/tree/pdfiprocessor.cxx +++ b/sdext/source/pdfimport/tree/pdfiprocessor.cxx @@ -458,7 +458,7 @@ void PDFIProcessor::strokePath( const uno::Reference< rendering::XPolyPolygon2D if( aCurClip.count() ) { aPoly = basegfx::utils::clipPolyPolygonOnPolyPolygon( aPoly, aCurClip, true, /* bInside, keep parts inside the clip */ - true /* bStroke, stroked */ ); + !aPoly.isClosed() /* bStroke */ ); } PolyPolyElement* pPoly = ElementFactory::createPolyPolyElement(