Bugfix: Wrong translation and clip box in case of 270° rotation

This commit is contained in:
Jakub Melka
2019-09-29 19:04:57 +02:00
parent 024c613171
commit 64476910f3
2 changed files with 5 additions and 1 deletions

View File

@ -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;
}