aboutsummaryrefslogtreecommitdiff
path: root/src/presentation.c
diff options
context:
space:
mode:
authorThomas White <taw@bitwiz.org.uk>2011-10-17 22:35:49 +0100
committerThomas White <taw@bitwiz.org.uk>2011-10-17 22:35:58 +0100
commit55387c17d2566050710e5e07beb61166392e830b (patch)
tree663c51aef3ef0ffc89f681b26eefcefa22e2d879 /src/presentation.c
parentdd3057bff79af7971ec9827e9dc07cdf3366396c (diff)
Fix remaining holes in redraw logic
Diffstat (limited to 'src/presentation.c')
-rw-r--r--src/presentation.c9
1 files changed, 8 insertions, 1 deletions
diff --git a/src/presentation.c b/src/presentation.c
index 1bc5689..9782b81 100644
--- a/src/presentation.c
+++ b/src/presentation.c
@@ -196,7 +196,14 @@ static void update_titlebar(struct presentation *p)
int slide_number(struct presentation *p, struct slide *s)
{
- /* FIXME: Implement this */
+ int i;
+
+ for ( i=0; i<p->num_slides; i++ ) {
+ if ( p->slides[i] == s ) return i;
+ }
+
+ fprintf(stderr, "Sorry, this point is never reached.\n");
+ fprintf(stderr, "Please report a bug.\n");
return 0;
}