mirror of
https://github.com/JakubMelka/PDF4QT.git
synced 2025-06-05 21:59:17 +02:00
Shading: Axial shading (first part)
This commit is contained in:
@ -48,12 +48,10 @@ QList<PDFRenderError> PDFRenderer::render(QPainter* painter, const QRectF& recta
|
||||
const PDFPage* page = catalog->getPage(pageIndex);
|
||||
Q_ASSERT(page);
|
||||
|
||||
QRectF mediaBox = page->getMediaBox();
|
||||
const PageRotation rotation = page->getPageRotation();
|
||||
mediaBox = page->getRotatedBox(mediaBox, rotation);
|
||||
QRectF mediaBox = page->getRotatedMediaBox();
|
||||
|
||||
QMatrix matrix;
|
||||
switch (rotation)
|
||||
switch (page->getPageRotation())
|
||||
{
|
||||
case PageRotation::None:
|
||||
{
|
||||
|
Reference in New Issue
Block a user