aboutsummaryrefslogtreecommitdiff
path: root/src/presentation.c
diff options
context:
space:
mode:
authorThomas White <taw@bitwiz.org.uk>2016-04-24 15:06:20 +0200
committerThomas White <taw@bitwiz.org.uk>2016-04-24 15:06:20 +0200
commite90d663864cb60067f90b964adc2686aba69e333 (patch)
tree0e02a4550cedd2dfc370c346b7596dc84ec61a2b /src/presentation.c
parentd8aca50e2ba6bfec052da5ab406899fa00fb607e (diff)
Fix slide numbers
Diffstat (limited to 'src/presentation.c')
-rw-r--r--src/presentation.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/presentation.c b/src/presentation.c
index 2d8efa6..5c2f03e 100644
--- a/src/presentation.c
+++ b/src/presentation.c
@@ -221,7 +221,7 @@ int slide_number(struct presentation *p, SCBlock *sl)
while ( bl != NULL ) {
if ( safe_strcmp(sc_block_name(bl), "slide") == 0 ) {
n++;
- if ( sc_block_child(bl) == sl ) return n;
+ if ( bl == sl ) return n;
}
bl = sc_block_next(bl);
}