aboutsummaryrefslogtreecommitdiff
path: root/libstorycode/narrative.c
diff options
context:
space:
mode:
authorThomas White <taw@bitwiz.me.uk>2019-04-30 17:51:31 +0200
committerThomas White <taw@bitwiz.me.uk>2019-04-30 18:01:22 +0200
commitc1b0437dd1f1bc6df338ad9fc15d270b9cc33884 (patch)
treed24f40699ae099abd7bae2c0ed2d6489d4144588 /libstorycode/narrative.c
parent584ff995faa629c82377d3a44fb25d5100d09c76 (diff)
Create stylesheet with narrative
This means there'll ALWAYS be a default stylesheet present, avoiding crashes and a lot of special cases.
Diffstat (limited to 'libstorycode/narrative.c')
-rw-r--r--libstorycode/narrative.c2
1 files changed, 1 insertions, 1 deletions
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