From 5b7e4c57f78c9ec2087726ecad89797132a32d08 Mon Sep 17 00:00:00 2001 From: Stefan Fuchs Date: Sun, 3 Dec 2017 09:19:26 +0100 Subject: Dive pictures show pictures of all selected dives In the dive picture tab show pictures of all selected dive. But at the same moment take care that in the profile only pictures from displayed_dive are displayed. Signed-off-by: Stefan Fuchs --- profile-widget/profilewidget2.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'profile-widget') diff --git a/profile-widget/profilewidget2.cpp b/profile-widget/profilewidget2.cpp index 6ca5334d4..d6a5f3343 100644 --- a/profile-widget/profilewidget2.cpp +++ b/profile-widget/profilewidget2.cpp @@ -2000,7 +2000,7 @@ void ProfileWidget2::plotPictures() double x, y, lastX = -1.0, lastY = -1.0; DivePictureModel *m = DivePictureModel::instance(); - for (int i = 0; i < m->rowCount(); i++) { + for (int i = m->rowDDStart; i <= m->rowDDEnd; i++) { int offsetSeconds = m->index(i, 1).data(Qt::UserRole).value(); // it's a correct picture, but doesn't have a timestamp: only show on the widget near the // information area. -- cgit v1.2.3-70-g09d2