diff options
Diffstat (limited to 'src/presentation.c')
-rw-r--r-- | src/presentation.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/presentation.c b/src/presentation.c index 5afd041..56bbbd6 100644 --- a/src/presentation.c +++ b/src/presentation.c @@ -125,7 +125,6 @@ void delete_slide(struct presentation *p, struct slide *s) } - struct slide *new_slide() { struct slide *new; @@ -140,7 +139,8 @@ struct slide *new_slide() new->top = frame_new(); /* FIXME: Set zero margins etc on top level frame */ - new->notes = strdup(""); + new->scblocks = NULL; + new->notes = NULL; return new; } @@ -424,6 +424,7 @@ int load_presentation(struct presentation *p, const char *filename) s->scblocks = sc_block_child(block); s->top = frame_new(); s->top->scblocks = sc_block_child(block); + attach_notes(s); } |