mirror of
https://github.com/JakubMelka/PDF4QT.git
synced 2025-06-05 21:59:17 +02:00
Bugfix: Wrong translation and clip box in case of 270° rotation
This commit is contained in:
@ -75,6 +75,7 @@ QList<PDFRenderError> PDFRenderer::render(QPainter* painter, const QRectF& recta
|
||||
{
|
||||
matrix.translate(rectangle.right(), rectangle.top());
|
||||
matrix.rotate(-90);
|
||||
matrix.translate(-rectangle.height(), 0);
|
||||
matrix.scale(rectangle.width() / mediaBox.width(), -rectangle.height() / mediaBox.height());
|
||||
break;
|
||||
}
|
||||
|
Reference in New Issue
Block a user