diff options
author | Dirk Hohndel <dirk@hohndel.org> | 2015-07-28 13:35:04 -0700 |
---|---|---|
committer | Dirk Hohndel <dirk@hohndel.org> | 2015-07-28 13:37:14 -0700 |
commit | a4608f7c91138401e9987ff0478bbe42408a37a7 (patch) | |
tree | c9f48cf556a1ca39604fe5045acfe2e44087b38e /dives/ostc_00087_04-05-2014_043m_032min.dive | |
parent | be47ce624170cfce7e9763e5530f0be3555c187d (diff) | |
download | subsurface-a4608f7c91138401e9987ff0478bbe42408a37a7.tar.gz |
Printing: fix dive lookup for profile generation
The existing code (and templates) looked up dives by number and then used
that as index into the dive table. This worked exactly in one case: if all
dives were numbered consecutively starting with 1. While that is not an
entirely unreasonable case, it's of course not an acceptable assumption to
make.
This commit adds the necessary changes to instead look up dives by their
unique id. That's what it's there fore, after all.
Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Diffstat (limited to 'dives/ostc_00087_04-05-2014_043m_032min.dive')
0 files changed, 0 insertions, 0 deletions