mirror of
https://github.com/JakubMelka/PDF4QT.git
synced 2025-06-05 21:59:17 +02:00
Issue #48: Page not displayed correctly
This commit is contained in:
@ -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;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user