Issue #48: Page not displayed correctly

This commit is contained in:
Jakub Melka 2023-04-16 18:55:10 +02:00
parent 5107fbc39b
commit 66c6e23346
2 changed files with 5 additions and 2 deletions

View File

@ -61,8 +61,8 @@ QTransform PDFRenderer::createPagePointToDevicePointMatrix(const PDFPage* page,
}
QTransform PDFRenderer::createMediaBoxToDevicePointMatrix(const QRectF& mediaBox,
const QRectF& rectangle,
PageRotation rotation)
const QRectF& rectangle,
PageRotation rotation)
{
QTransform matrix;
switch (rotation)
@ -105,6 +105,8 @@ QTransform PDFRenderer::createMediaBoxToDevicePointMatrix(const QRectF& mediaBox
}
}
matrix.translate(-mediaBox.left(), -mediaBox.top());
return matrix;
}

View File

@ -1,4 +1,5 @@
CURRENT:
- Issue #48: Page not displayed correctly
- Issue #45: Blank page in DocPage Organizer
- Issue #43: Save question
- Issue #40: Sanitization of documents