aboutsummaryrefslogtreecommitdiff
path: root/src/presentation.c
diff options
context:
space:
mode:
authorThomas White <taw@bitwiz.org.uk>2014-09-13 09:54:11 +0200
committerThomas White <taw@bitwiz.org.uk>2014-09-13 09:54:11 +0200
commit7b302ea4b906b162c37c3370434165f6e83a9def (patch)
tree8af7639781698cf6722ce329abf47589e79ad5da /src/presentation.c
parent28026ebf0fde1eb1b51f3808b4f3fc681039e887 (diff)
Restore notes
Diffstat (limited to 'src/presentation.c')
-rw-r--r--src/presentation.c5
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);
}