summaryrefslogtreecommitdiffstats
path: root/save-xml.c
diff options
context:
space:
mode:
authorGravatar Dirk Hohndel <dirk@hohndel.org>2012-12-12 07:25:28 -0800
committerGravatar Dirk Hohndel <dirk@hohndel.org>2012-12-12 07:25:28 -0800
commitaba65736eb8cb85fa9bfa953095eab21f0668904 (patch)
treea7f24ce89f7573b47bb6f545a347054a083182f1 /save-xml.c
parent597a3677e9025a41eb84fa1741721d9b0bd89f63 (diff)
downloadsubsurface-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 'save-xml.c')
0 files changed, 0 insertions, 0 deletions