From 34604c7fe4530c8a9b8510497de51367f550df99 Mon Sep 17 00:00:00 2001 From: Thomas White Date: Fri, 23 Dec 2011 21:29:39 +0000 Subject: Fix a couple of slide role bugs --- src/stylesheet.c | 2 +- src/tool_text.c | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/src/stylesheet.c b/src/stylesheet.c index 5706cc2..1a76a45 100644 --- a/src/stylesheet.c +++ b/src/stylesheet.c @@ -655,7 +655,7 @@ enum object_role str_to_role(const char *s) if ( strcmp(s, "ptitle-ref") == 0 ) return S_ROLE_PTITLE_REF; if ( strcmp(s, "pauthor") == 0 ) return S_ROLE_PAUTHOR; if ( strcmp(s, "pauthor-ref") == 0 ) return S_ROLE_PAUTHOR_REF; - if ( strcmp(s, "padte") == 0 ) return S_ROLE_PDATE; + if ( strcmp(s, "pdate") == 0 ) return S_ROLE_PDATE; if ( strcmp(s, "pdate-ref") == 0 ) return S_ROLE_PDATE_REF; return S_ROLE_NONE; diff --git a/src/tool_text.c b/src/tool_text.c index c45950d..e5e3dc3 100644 --- a/src/tool_text.c +++ b/src/tool_text.c @@ -683,6 +683,7 @@ static void create_default(struct presentation *p, struct style *sty, n = add_text_object(s, 0.0, 0.0, sty, ti); o = (struct text_object *)n; o->furniture = 1; + n->empty = 0; if ( sty->role != S_ROLE_NONE ) { s->roles[sty->role] = n; -- cgit v1.2.3