aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorThomas White <taw@physics.org>2018-01-25 22:59:50 +0100
committerThomas White <taw@physics.org>2018-01-25 22:59:50 +0100
commit1dd2b61afed5f6f7d207ad9756e7b22108257205 (patch)
treed4b4e32fb449d5ab204820eac9ed96a4e80e1460 /src
parent37919153f021a232202a5b2cf26483dc77c25b41 (diff)
Fix slide numbers in narrative window
Diffstat (limited to 'src')
-rw-r--r--src/narrative_window.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/narrative_window.c b/src/narrative_window.c
index 6381755..02960a5 100644
--- a/src/narrative_window.c
+++ b/src/narrative_window.c
@@ -690,6 +690,7 @@ static cairo_surface_t *render_thumbnail(int w, int h, void *bvp, void *vp)
cairo_surface_t *surf;
SCBlock *stylesheets[2];
struct frame *top;
+ int sn = slide_number(p, scblocks);
scblocks = sc_block_child(scblocks);
stylesheets[0] = p->stylesheet;
@@ -697,7 +698,7 @@ static cairo_surface_t *render_thumbnail(int w, int h, void *bvp, void *vp)
/* FIXME: Cache like crazy here */
surf = render_sc(scblocks, w, h, p->slide_width, p->slide_height,
- stylesheets, NULL, p->is, 0, &top, p->lang);
+ stylesheets, NULL, p->is, sn, &top, p->lang);
frame_free(top);
return surf;