Members of the KDE Community are recommended to subscribe to the kde-community mailing list at to allow them to participate in important discussions and receive other important announcements

Commit 7a41ee5d authored by Mailson Menezes's avatar Mailson Menezes Committed by Fabio D'Urso

Fix tiles issue when zooming out a rotated document

The issue can be reproduced by zooming a rotated document to 1600% then
back to 800%

REVIEW: 110905
parent 449861c1
......@@ -313,7 +313,8 @@ void TilesManager::Private::setPixmap( const QPixmap *pixmap, const NormalizedRe
totalPixels -= tile.pixmap->width()*tile.pixmap->height();
delete tile.pixmap;
tile.pixmap = new QPixmap( pixmap->copy( tile.rect.geometry( width, height ).translated( -pixmapRect.topLeft() ) ) );
NormalizedRect rotatedRect = TilesManager::toRotatedRect( tile.rect, rotation );
tile.pixmap = new QPixmap( pixmap->copy( rotatedRect.geometry( width, height ).translated( -pixmapRect.topLeft() ) ) );
tile.rotation = rotation;
totalPixels += tile.pixmap->width()*tile.pixmap->height();
tile.dirty = false;
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment