aboutsummaryrefslogtreecommitdiff
path: root/src/loadsave.c
diff options
context:
space:
mode:
authorThomas White <taw@bitwiz.org.uk>2011-12-26 22:56:58 +0000
committerThomas White <taw@bitwiz.org.uk>2011-12-26 22:56:58 +0000
commitb632fdc3a301a10af2f1618d1c4d3dd854d4b820 (patch)
treeb78b147e0d9f3a35248ae0e3d5247b510e49f269 /src/loadsave.c
parentffbb6a4b5f4c65a44f610eeab576bb898253790a (diff)
Update all text objects immediately before rendering them
Knowledge about the exact rendering circumstances are needed in order to render the text properly, and the only time this is available is during rendering itself. Updating is now avoided under other circumstances to avoid doing the size calculations twice.
Diffstat (limited to 'src/loadsave.c')
-rw-r--r--src/loadsave.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/loadsave.c b/src/loadsave.c
index 9fb1e1f..d67fb37 100644
--- a/src/loadsave.c
+++ b/src/loadsave.c
@@ -479,7 +479,7 @@ static struct slide *tree_to_slide(struct presentation *p, struct ds_node *root)
o = tree_to_object(p, root->children[i]);
if ( o != NULL ) {
add_object_to_slide(s, o);
- o->update_object(o);
+ if ( o->type != OBJ_TEXT) o->update_object(o);
}
}