From b4faa1775dfd90e781ac2f94a7ae1ada31b9d49f Mon Sep 17 00:00:00 2001 From: "Dr. David Alan Gilbert" Date: Wed, 28 Aug 2024 23:56:36 +0100 Subject: [PATCH] tdf#148526 sdext,pdfimport: clipToStrokePath: Set line join Set the line join type from our GC. Change-Id: I8f64ae032930e46028cd49efefb05af06d4866d6 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/172926 Tested-by: Jenkins Reviewed-by: David Gilbert --- sdext/source/pdfimport/tree/pdfiprocessor.cxx | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/sdext/source/pdfimport/tree/pdfiprocessor.cxx b/sdext/source/pdfimport/tree/pdfiprocessor.cxx index 0d0fe733cd05..37b29a5aaa67 100644 --- a/sdext/source/pdfimport/tree/pdfiprocessor.cxx +++ b/sdext/source/pdfimport/tree/pdfiprocessor.cxx @@ -548,7 +548,8 @@ void PDFIProcessor::intersectClipToStroke(const uno::Reference< rendering::XPoly // thickness etc is set. PolyPolygonStrokePrimitive2D::create2DDecomposition does most // of the work. const basegfx::BColor aBlack(0.0, 0.0, 0.0); - drawinglayer::attribute::LineAttribute aLineAttribute(aBlack, rGC.LineWidth * nScale /*, aJoin */); + drawinglayer::attribute::LineAttribute aLineAttribute(aBlack, rGC.LineWidth * nScale, + rGC.LineJoin); rtl::Reference aStrokePrimitive( new drawinglayer::primitive2d::PolyPolygonStrokePrimitive2D(aNewClip, aLineAttribute)); drawinglayer::primitive2d::Primitive2DContainer aPrimitiveContainer;