summaryrefslogtreecommitdiffstats
path: root/xslt
diff options
context:
space:
mode:
authorGravatar Linus Torvalds <torvalds@linux-foundation.org>2011-10-29 15:57:26 -0700
committerGravatar Linus Torvalds <torvalds@linux-foundation.org>2011-10-29 15:57:26 -0700
commitceed8b6bc91872dec83b9c02223d72ac137c7335 (patch)
tree16d3c7efc552c9ce07c05533a3ce2e30ec137af3 /xslt
parent7c1deb37c702ad668f40ae6a9a14cd2faf918ae4 (diff)
downloadsubsurface-ceed8b6bc91872dec83b9c02223d72ac137c7335.tar.gz
Fix up end conditions for dives
We used to have the dive plot have two "filler" entries at the beginning and the end, and indeed that is how they are allocated. However, we fix up "pi->nr" later to be "lastindex+1", where "lastindex" is the index of the time we surface. So when we loop over the plot entries, we actually need to loop all the way to the end: use "i < pi->nr" instead of "i < pi->nr-2". We still do have the two extra filler entries at the beginning, though. So depending on the loop, we might want to start at entry 2. Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'xslt')
0 files changed, 0 insertions, 0 deletions