subsurface/printing_templates
Dirk Hohndel a4608f7c91 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>
2015-07-28 13:37:14 -07:00
..
Custom.html Printing: rename templates to have spaces and capitalization 2015-07-28 11:39:44 +03:00
Flowlayout.html Printing: rename templates to have spaces and capitalization 2015-07-28 11:39:44 +03:00
One Dive.html Printing: fix dive lookup for profile generation 2015-07-28 13:37:14 -07:00
Table.html Printing: rename templates to have spaces and capitalization 2015-07-28 11:39:44 +03:00
Two Dives.html Printing: fix dive lookup for profile generation 2015-07-28 13:37:14 -07:00