X-Git-Url: http://git.tdb.fi/?a=blobdiff_plain;ds=inline;f=profile.c;h=cc3f2485af5ec59fd6c79b0418476dafa3059265;hb=2044dabc81062c22c7f95a2e0e57f931cee0205f;hp=f850c2fff3a819a44c5199f770218d9fca7fe992;hpb=23e831a6ed61878240897cd6a7b276526a3f4ba4;p=ext%2Fsubsurface.git diff --git a/profile.c b/profile.c index f850c2f..cc3f248 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;