summaryrefslogtreecommitdiffstats
path: root/main.c
diff options
context:
space:
mode:
authorGravatar Dirk Hohndel <dirk@hohndel.org>2011-10-23 08:50:14 -0700
committerGravatar Dirk Hohndel <dirk@hohndel.org>2011-10-23 09:09:00 -0700
commitb091916249c940666b249d253f082ef5dad75411 (patch)
tree1f17f715b5f2e119e0c9225dc2b14257dc3533bc /main.c
parent86fdd83e7b9cc661940470c7b7d83316b223f572 (diff)
downloadsubsurface-b091916249c940666b249d253f082ef5dad75411.tar.gz
Show dive number in dive list
Make sure that renumbering the divelist correctly shows up on the display. Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Diffstat (limited to 'main.c')
-rw-r--r--main.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/main.c b/main.c
index ee09b9a82..a82cffc2b 100644
--- a/main.c
+++ b/main.c
@@ -203,6 +203,7 @@ void renumber_dives(int nr)
for (i = 0; i < dive_table.nr; i++) {
struct dive *dive = dive_table.dives[i];
dive->number = nr + i;
+ flush_divelist(dive);
}
mark_divelist_changed(TRUE);
}