From 8587b378bf7f46f248ea600ab2b789901c3348e6 Mon Sep 17 00:00:00 2001 From: Thomas White Date: Mon, 21 Nov 2016 21:58:55 +0100 Subject: Handle new slide without template --- src/narrative_window.c | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'src') 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 */ } -- cgit v1.2.3