summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGravatar Dirk Hohndel <dirk@hohndel.org>2015-10-03 09:47:37 -0400
committerGravatar Dirk Hohndel <dirk@hohndel.org>2015-10-03 09:47:37 -0400
commit58fbee7150b021671d5dee70ee968fb1d42f8902 (patch)
treece7ab048862dd8ab8a7d7968c7fdb56a3f4e22bb
parent69036a1bb777b3a4c6f9b6217049899c2ec267b3 (diff)
downloadsubsurface-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.cpp3
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;