aboutsummaryrefslogtreecommitdiff
path: root/src/presentation.c
diff options
context:
space:
mode:
authorThomas White <taw@bitwiz.org.uk>2012-09-08 11:07:54 +0200
committerThomas White <taw@bitwiz.org.uk>2012-09-08 11:07:54 +0200
commit017121b0816250ddcc8a08746a6f140e48ca2d9e (patch)
tree15ccd482f6ee023c954905b3c89c385db8c61bbb /src/presentation.c
parent0a6d0255787a7b95a31ab317ed83463109c9fc01 (diff)
Plug in stylesheets and load/save
Diffstat (limited to 'src/presentation.c')
-rw-r--r--src/presentation.c7
1 files changed, 3 insertions, 4 deletions
diff --git a/src/presentation.c b/src/presentation.c
index 01a8fbf..405cf49 100644
--- a/src/presentation.c
+++ b/src/presentation.c
@@ -62,7 +62,7 @@ void free_presentation(struct presentation *p)
int insert_slide(struct presentation *p, struct slide *new, int pos)
{
struct slide **try;
-
+
try = realloc(p->slides, (1+p->num_slides)*sizeof(struct slide *));
if ( try == NULL ) {
free(new);
@@ -207,7 +207,6 @@ struct presentation *new_presentation()
new->ui = NULL;
new->action_group = NULL;
new->slideshow = NULL;
- new->notes = NULL;
new->slide_width = 1024.0;
new->slide_height = 768.0;
@@ -220,8 +219,8 @@ struct presentation *new_presentation()
new->completely_empty = 1;
- //new->ss = new_stylesheet();
- //default_stylesheet(new->ss);
+ new->ss = new_stylesheet();
+ default_stylesheet(new->ss);
return new;
}