From c904d74fdb114d73f1e3af4a402c0211e3c3b41f Mon Sep 17 00:00:00 2001 From: Aleksei Kanash Date: Mon, 7 May 2012 14:06:31 +0300 Subject: [PATCH] Fix to SANKORE-642. Exporting PDF with annotations works fine now. --- src/adaptors/UBExportFullPDF.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/adaptors/UBExportFullPDF.cpp b/src/adaptors/UBExportFullPDF.cpp index 8f6b80f6..b7499f97 100644 --- a/src/adaptors/UBExportFullPDF.cpp +++ b/src/adaptors/UBExportFullPDF.cpp @@ -100,6 +100,7 @@ void UBExportFullPDF::saveOverlayPdf(UBDocumentProxy* pDocumentProxy, const QStr if (pageIndex != 0) pdfPrinter.newPage(); //render to PDF + scene->setDrawingMode(true); scene->render(pdfPainter, QRectF(), scene->normalizedSceneRect()); //restore screen rendering quality @@ -107,6 +108,7 @@ void UBExportFullPDF::saveOverlayPdf(UBDocumentProxy* pDocumentProxy, const QStr scene->setRenderingQuality(UBItem::RenderingQualityNormal); //restore background state + scene->setDrawingMode(false); scene->setBackground(isDark, isCrossed); }