]> git.sesse.net Git - vlc/commitdiff
Qt4: load coverart properly under selector
authorIlkka Ollakka <ileoo@videolan.org>
Wed, 19 Oct 2011 15:41:20 +0000 (18:41 +0300)
committerIlkka Ollakka <ileoo@videolan.org>
Wed, 19 Oct 2011 15:42:52 +0000 (18:42 +0300)
We don't define maximumWidth for that anymore, so there was this
'QImage: out of memory, returning null' message and no albumart on side.

modules/gui/qt4/components/interface_widgets.cpp

index 47c1f6076bd23fbde627a025a35da42d5591f8da..12e9f17992e369ca2cf188239a65ed4586ab6858 100644 (file)
@@ -496,7 +496,7 @@ void CoverArtLabel::showArtUpdate( const QString& url )
     QPixmap pix;
     if( !url.isEmpty() && pix.load( url ) )
     {
-        pix = pix.scaled( maximumWidth(), maximumHeight(),
+        pix = pix.scaled( minimumWidth(), maximumHeight(),
                           Qt::KeepAspectRatioByExpanding,
                           Qt::SmoothTransformation );
     }