1
0
mirror of https://github.com/tomahawk-player/tomahawk.git synced 2025-04-22 00:42:04 +02:00

* Don't try to work on null-pixmaps.

This commit is contained in:
Christian Muehlhaeuser 2012-11-15 07:51:56 +01:00
parent a9af4be463
commit 4b3bf16edc

@ -326,6 +326,9 @@ createRoundedImage( const QPixmap& pixmap, const QSize& size, float frameWidthPc
width = pixmap.width();
}
if ( !height || !width )
return QPixmap();
int frameWidth = (float)width * frameWidthPct;
QPixmap scaledAvatar = pixmap.scaled( width, height, Qt::IgnoreAspectRatio, Qt::SmoothTransformation );