mirror of
https://github.com/JakubMelka/PDF4QT.git
synced 2025-06-05 21:59:17 +02:00
Issue #22: Fix compilation warnings
This commit is contained in:
@@ -214,8 +214,7 @@ QPixmap PageItemDelegate::getPageImagePixmap(const PageGroupItem* item, QRect re
|
||||
QMatrix matrix = pdf::PDFRenderer::createMediaBoxToDevicePointMatrix(rotatedMediaBox, drawRect, groupItem.pageAdditionalRotation);
|
||||
|
||||
QPainter painter(&pixmap);
|
||||
painter.setWorldMatrixEnabled(true);
|
||||
painter.setWorldMatrix(matrix);
|
||||
painter.setWorldTransform(QTransform(matrix));
|
||||
painter.translate(0, image.height());
|
||||
painter.scale(1.0, -1.0);
|
||||
painter.drawImage(0, 0, image);
|
||||
|
Reference in New Issue
Block a user