From 80e3dfbe1e597ce6a42241656b0b3f95f37fc787 Mon Sep 17 00:00:00 2001 From: Jakub Melka Date: Thu, 9 Jul 2020 14:52:14 +0200 Subject: [PATCH] Bugfix: corrected base pattern matrix --- PdfForQtLib/sources/pdfpagecontentprocessor.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/PdfForQtLib/sources/pdfpagecontentprocessor.cpp b/PdfForQtLib/sources/pdfpagecontentprocessor.cpp index 2546ef0..d1caa32 100644 --- a/PdfForQtLib/sources/pdfpagecontentprocessor.cpp +++ b/PdfForQtLib/sources/pdfpagecontentprocessor.cpp @@ -937,6 +937,10 @@ void PDFPageContentProcessor::processTillingPatternPainting(const PDFTilingPatte QMatrix transformationMatrix = baseTransformationMatrix; transformationMatrix.translate(tilingArea.left(), tilingArea.top()); transformationMatrix.translate(column * xStep, row * yStep); + + QMatrix patternMatrix = transformationMatrix * m_pagePointToDevicePointMatrix; + PDFTemporaryValueChange patternMatrixGuard(&m_patternBaseMatrix, patternMatrix); + m_graphicState.setCurrentTransformationMatrix(transformationMatrix); updateGraphicState();