mirror of https://github.com/JakubMelka/PDF4QT.git
Issue #48: Page not displayed correctly
This commit is contained in:
parent
5107fbc39b
commit
66c6e23346
|
@ -61,8 +61,8 @@ QTransform PDFRenderer::createPagePointToDevicePointMatrix(const PDFPage* page,
|
||||||
}
|
}
|
||||||
|
|
||||||
QTransform PDFRenderer::createMediaBoxToDevicePointMatrix(const QRectF& mediaBox,
|
QTransform PDFRenderer::createMediaBoxToDevicePointMatrix(const QRectF& mediaBox,
|
||||||
const QRectF& rectangle,
|
const QRectF& rectangle,
|
||||||
PageRotation rotation)
|
PageRotation rotation)
|
||||||
{
|
{
|
||||||
QTransform matrix;
|
QTransform matrix;
|
||||||
switch (rotation)
|
switch (rotation)
|
||||||
|
@ -105,6 +105,8 @@ QTransform PDFRenderer::createMediaBoxToDevicePointMatrix(const QRectF& mediaBox
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
matrix.translate(-mediaBox.left(), -mediaBox.top());
|
||||||
|
|
||||||
return matrix;
|
return matrix;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -1,4 +1,5 @@
|
||||||
CURRENT:
|
CURRENT:
|
||||||
|
- Issue #48: Page not displayed correctly
|
||||||
- Issue #45: Blank page in DocPage Organizer
|
- Issue #45: Blank page in DocPage Organizer
|
||||||
- Issue #43: Save question
|
- Issue #43: Save question
|
||||||
- Issue #40: Sanitization of documents
|
- Issue #40: Sanitization of documents
|
||||||
|
|
Loading…
Reference in New Issue