diff options
author | Thomas White <taw@bitwiz.org.uk> | 2014-09-13 09:54:11 +0200 |
---|---|---|
committer | Thomas White <taw@bitwiz.org.uk> | 2014-09-13 09:54:11 +0200 |
commit | 7b302ea4b906b162c37c3370434165f6e83a9def (patch) | |
tree | 8af7639781698cf6722ce329abf47589e79ad5da /src/presentation.c | |
parent | 28026ebf0fde1eb1b51f3808b4f3fc681039e887 (diff) |
Restore notes
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); } |