From c1b0437dd1f1bc6df338ad9fc15d270b9cc33884 Mon Sep 17 00:00:00 2001 From: Thomas White Date: Tue, 30 Apr 2019 17:51:31 +0200 Subject: Create stylesheet with narrative This means there'll ALWAYS be a default stylesheet present, avoiding crashes and a lot of special cases. --- libstorycode/narrative.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'libstorycode/narrative.c') diff --git a/libstorycode/narrative.c b/libstorycode/narrative.c index 9488285..c14ac6d 100644 --- a/libstorycode/narrative.c +++ b/libstorycode/narrative.c @@ -56,7 +56,7 @@ Narrative *narrative_new() if ( n == NULL ) return NULL; n->n_items = 0; n->items = NULL; - n->stylesheet = NULL; + n->stylesheet = stylesheet_new(); n->imagestore = imagestore_new("."); /* FIXME: From app config */ n->saved = 1; #ifdef HAVE_PANGO -- cgit v1.2.3