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:
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 );
|
||||
|
Loading…
x
Reference in New Issue
Block a user