diff options
-rw-r--r-- | src/stylesheet.c | 2 | ||||
-rw-r--r-- | src/tool_text.c | 1 |
2 files changed, 2 insertions, 1 deletions
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; |