Commit 3919ab08 authored by Fabio D'Urso's avatar Fabio D'Urso

Merge remote-tracking branch 'origin/KDE/4.10'

parents 54d9ffb9 7a41ee5d
......@@ -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