diff options
author | Stefan Fuchs <sfuchs@gmx.de> | 2017-12-13 19:32:29 +0100 |
---|---|---|
committer | Dirk Hohndel <dirk@hohndel.org> | 2017-12-15 09:11:28 -0800 |
commit | 2890be92568d36303e99e84501994572c2a16c6e (patch) | |
tree | cf1ae19cbc241cf18ba8e60f7180a0eda611b299 /profile-widget/profilewidget2.cpp | |
parent | ef543da5aff296e4e4996a87e22165cf43ef2e87 (diff) | |
download | subsurface-2890be92568d36303e99e84501994572c2a16c6e.tar.gz |
divepicturemodel: Reset start and end row for displayed_dive correctly
Correct way of using indices for rowDDstart and rowDDend.
Reset rowDDstart and rowDDend at beginning of updating dive pictures.
Signed-off-by: Stefan Fuchs <sfuchs@gmx.de>
Diffstat (limited to 'profile-widget/profilewidget2.cpp')
-rw-r--r-- | profile-widget/profilewidget2.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/profile-widget/profilewidget2.cpp b/profile-widget/profilewidget2.cpp index b40980e5f..b7b6057fe 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 = m->rowDDStart; i <= m->rowDDEnd; i++) { + for (int i = m->rowDDStart; i < m->rowDDEnd; i++) { int offsetSeconds = m->index(i, 1).data(Qt::UserRole).value<int>(); // it's a correct picture, but doesn't have a timestamp: only show on the widget near the // information area. |