aboutsummaryrefslogtreecommitdiff
path: root/src/narrative_window.c
diff options
context:
space:
mode:
authorThomas White <taw@bitwiz.org.uk>2016-11-21 21:58:55 +0100
committerThomas White <taw@bitwiz.org.uk>2016-11-21 21:58:55 +0100
commit8587b378bf7f46f248ea600ab2b789901c3348e6 (patch)
tree901abfbffc0b57fd81afc9f4bbb4a47c8c130d91 /src/narrative_window.c
parenta7de2d4816b4ae4727d53f0650d67afbafb01225 (diff)
Handle new slide without template
Diffstat (limited to 'src/narrative_window.c')
-rw-r--r--src/narrative_window.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/narrative_window.c b/src/narrative_window.c
index ca0d624..dbedb6a 100644
--- a/src/narrative_window.c
+++ b/src/narrative_window.c
@@ -211,6 +211,12 @@ static SCBlock *get_slide_template(SCBlock *ss)
free(templates[i].friendlyname);
}
free(templates);
+
+ /* No template? */
+ if ( ret == NULL ) {
+ ret = sc_parse("\\slide{}");
+ }
+
return ret; /* NB this is a copy of the one owned by the interpreter */
}