From f8d7026fa8c6f8ffdc5ff11c17de592c342e86da Mon Sep 17 00:00:00 2001 From: Jakub Melka Date: Sun, 22 Dec 2024 17:21:20 +0100 Subject: [PATCH] Issue #229: Can't add picture to PDF --- Pdf4QtLibWidgets/sources/pdfpagecontentelements.cpp | 2 +- RELEASES.txt | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/Pdf4QtLibWidgets/sources/pdfpagecontentelements.cpp b/Pdf4QtLibWidgets/sources/pdfpagecontentelements.cpp index 17d7d46..0fcd326 100644 --- a/Pdf4QtLibWidgets/sources/pdfpagecontentelements.cpp +++ b/Pdf4QtLibWidgets/sources/pdfpagecontentelements.cpp @@ -1231,7 +1231,7 @@ void PDFPageContentImageElement::drawPage(QPainter* painter, painter->scale(1.0, -1.0); targetRenderBox.moveTopLeft(QPointF(0, 0)); - QImage image = convertor.convert(image); + QImage image = convertor.convert(m_image); painter->drawImage(targetRenderBox, image); } } diff --git a/RELEASES.txt b/RELEASES.txt index 422f551..3a4f329 100644 --- a/RELEASES.txt +++ b/RELEASES.txt @@ -1,4 +1,5 @@ CURRENT: + - Issue #229: Can't add picture to PDF - Issue #228: [feature] reverse pages order - Issue #222: UnitTests fails several tests - Issue #207: Zoom to Cursor (Zoom Anchoring)