aboutsummaryrefslogtreecommitdiff
path: root/src/narrative_window.c
diff options
context:
space:
mode:
authorThomas White <taw@bitwiz.me.uk>2019-03-29 17:17:54 +0100
committerThomas White <taw@bitwiz.me.uk>2019-03-29 17:17:54 +0100
commit94417175556e1938994a7a3a713e5fab0cd74f0c (patch)
tree5779a2995e4cc257986c3a161b0eedea9e97fad3 /src/narrative_window.c
parent23ead7fea646dc6748f40b13c2a27401d9e9445a (diff)
Catch attempt to advance paragraph past end of narrative
Diffstat (limited to 'src/narrative_window.c')
-rw-r--r--src/narrative_window.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/narrative_window.c b/src/narrative_window.c
index a6e71af..1e66af2 100644
--- a/src/narrative_window.c
+++ b/src/narrative_window.c
@@ -361,6 +361,7 @@ static void ss_next_para(SCSlideshow *ss, void *vp)
n_paras = narrative_get_num_items(narr);
nv = GTK_NARRATIVE_VIEW(nw->nv);
+ if ( gtk_narrative_view_get_cursor_para(nv) == n_paras - 1 ) return;
gtk_narrative_view_set_cursor_para(nv, gtk_narrative_view_get_cursor_para(nv)+1);
/* If we only have one monitor, skip to next slide */