summaryrefslogtreecommitdiffstats
path: root/profile.c
diff options
context:
space:
mode:
Diffstat (limited to 'profile.c')
-rw-r--r--profile.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/profile.c b/profile.c
index f850c2fff..cc3f2485a 100644
--- a/profile.c
+++ b/profile.c
@@ -5,9 +5,11 @@
#include "dive.h"
#include "display.h"
+int selected_dive = 0;
+
static gboolean expose_event(GtkWidget *widget, GdkEventExpose *event, gpointer data)
{
- struct dive *dive = dive_table.dives[0];
+ struct dive *dive = dive_table.dives[selected_dive];
cairo_t *cr;
int i;