Axial shading fix

This commit is contained in:
Jakub Melka 2020-07-09 11:04:43 +02:00
parent 87d4935489
commit 3bf14c0c93

View File

@ -213,7 +213,7 @@ PDFPageContentProcessor::PDFPageContentProcessor(const PDFPage* page,
PDFExecutionPolicy::startProcessingContentStream(); PDFExecutionPolicy::startProcessingContentStream();
QPainterPath pageRectPath; QPainterPath pageRectPath;
pageRectPath.addRect(m_page->getRotatedMediaBox()); pageRectPath.addRect(m_page->getMediaBox());
m_pageBoundingRectDeviceSpace = pagePointToDevicePointMatrix.map(pageRectPath).boundingRect(); m_pageBoundingRectDeviceSpace = pagePointToDevicePointMatrix.map(pageRectPath).boundingRect();
initDictionaries(m_page->getResources()); initDictionaries(m_page->getResources());
@ -2659,7 +2659,7 @@ void PDFPageContentProcessor::operatorShadingPaintShape(PDFPageContentProcessor:
{ {
if (isContentKindSuppressed(ContentKind::Shading)) if (isContentKindSuppressed(ContentKind::Shading))
{ {
// Images are suppressed // Shadings are suppressed
return; return;
} }