diff options
author | Dirk Hohndel <dirk@hohndel.org> | 2015-10-03 09:47:37 -0400 |
---|---|---|
committer | Dirk Hohndel <dirk@hohndel.org> | 2015-10-03 09:47:37 -0400 |
commit | 58fbee7150b021671d5dee70ee968fb1d42f8902 (patch) | |
tree | ce7ab048862dd8ab8a7d7968c7fdb56a3f4e22bb | |
parent | 69036a1bb777b3a4c6f9b6217049899c2ec267b3 (diff) | |
download | subsurface-58fbee7150b021671d5dee70ee968fb1d42f8902.tar.gz |
Make logical block match indentation
Coverity CID 1325519
Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
-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; |