mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-19 22:16:15 +00:00
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 <sfuchs@gmx.de>
This commit is contained in:
parent
a11622623a
commit
5b7e4c57f7
3 changed files with 17 additions and 7 deletions
|
@ -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<int>();
|
||||
// it's a correct picture, but doesn't have a timestamp: only show on the widget near the
|
||||
// information area.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue