Commit 338887d0 authored by Francois Cartegnie's avatar Francois Cartegnie

Qt: CoverArtLabel: fix sizing bug.

QPixmapCache can't compute using an undefined maxsize.
Introduced by a2314241
parent 1c9e4402
...@@ -541,7 +541,7 @@ void CoverArtLabel::showArtUpdate( const QString& url ) ...@@ -541,7 +541,7 @@ void CoverArtLabel::showArtUpdate( const QString& url )
QPixmap pix; QPixmap pix;
if( !url.isEmpty() && pix.load( url ) ) if( !url.isEmpty() && pix.load( url ) )
{ {
pix = pix.scaled( minimumWidth(), maximumHeight(), pix = pix.scaled( minimumWidth(), minimumHeight(),
Qt::KeepAspectRatioByExpanding, Qt::KeepAspectRatioByExpanding,
Qt::SmoothTransformation ); Qt::SmoothTransformation );
} }
......
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