aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--libstorycode/narrative.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/libstorycode/narrative.c b/libstorycode/narrative.c
index c14ac6d..7e58f88 100644
--- a/libstorycode/narrative.c
+++ b/libstorycode/narrative.c
@@ -110,6 +110,11 @@ Narrative *narrative_load(GFile *file)
g_bytes_unref(bytes);
if ( n == NULL ) return NULL;
+ if ( n->n_items == 0 ) {
+ /* Presentation is empty. Add a dummy to start things off */
+ narrative_add_text(n, strdup(""));
+ }
+
imagestore_set_parent(n->imagestore, g_file_get_parent(file));
return n;
}