diff options
Diffstat (limited to 'qt-models/divepicturemodel.cpp')
-rw-r--r-- | qt-models/divepicturemodel.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/qt-models/divepicturemodel.cpp b/qt-models/divepicturemodel.cpp index 06051dd28..1f37423e2 100644 --- a/qt-models/divepicturemodel.cpp +++ b/qt-models/divepicturemodel.cpp @@ -15,9 +15,10 @@ SPixmap scaleImages(picturepointer picture) } else { int dim = defaultIconMetrics().sz_pic; QImage p = SHashedImage(picture); - if(!p.isNull()) + if(!p.isNull()) { p = p.scaled(dim, dim, Qt::KeepAspectRatio); cache.insert(picture->filename, p); + } ret.second = p; } return ret; |