diff options
author | Dirk Hohndel <dirk@hohndel.org> | 2012-12-12 07:25:28 -0800 |
---|---|---|
committer | Dirk Hohndel <dirk@hohndel.org> | 2012-12-12 07:25:28 -0800 |
commit | aba65736eb8cb85fa9bfa953095eab21f0668904 (patch) | |
tree | a7f24ce89f7573b47bb6f545a347054a083182f1 /profile.c | |
parent | 597a3677e9025a41eb84fa1741721d9b0bd89f63 (diff) | |
download | subsurface-aba65736eb8cb85fa9bfa953095eab21f0668904.tar.gz |
Change the empty product model to be index 0
A vendor of -1 indicates that we should have no product selection in the
dive download dialog. Having the empty product model be the last made it
hard to keep the correct index for that empty model around (and we got it
wrong by default).
With this change the product models are offset by one, so the unset vendor
(-1) turns into index 0 which is where we now store the empty model.
Reported-by: Henrik Brautaset Aronsen <subsurface@henrik.synth.no>
Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Diffstat (limited to 'profile.c')
0 files changed, 0 insertions, 0 deletions