~ubuntu-branches/ubuntu/quantal/juk/quantal-updates

« back to all changes in this revision

Viewing changes to coverinfo.cpp

  • Committer: Package Import Robot
  • Author(s): Jonathan Riddell
  • Date: 2012-07-26 16:59:45 UTC
  • mfrom: (1.1.1)
  • Revision ID: package-import@ubuntu.com-20120726165945-772amryko0w8848d
Tags: 4:4.9.0-0ubuntu1
* Use direct build-depends versions rather than kde-sc-dev-latest
* New upstream release

Show diffs side-by-side

added added

removed removed

Lines of Context:
231
231
 
232
232
    // If we get here, see if there is an embedded cover.
233
233
    cover = embeddedAlbumArt();
234
 
 
235
 
    if(size == Thumbnail)
 
234
    if(!cover.isNull() && size == Thumbnail)
236
235
        cover = scaleCoverToThumbnail(cover);
237
236
 
 
237
    if(cover.isNull()) {
 
238
        return QPixmap();
 
239
    }
 
240
 
238
241
    return QPixmap::fromImage(cover);
239
242
}
240
243