From 13f455f578b9c48f58b8ef099fe9963d76f3866b Mon Sep 17 00:00:00 2001 From: Krzysztof Kosciuszkiewicz Date: Mon, 10 Jan 2011 01:54:37 +0100 Subject: [PATCH] libgeda: recalculate bounding box after adding object to page After adding new component or loading complex object from file when promotable attributes are not removed, the initially calculated bounding box is invalid. Recalculating bounding box for every object added to page fixes this. Closes-bug: lp-700841 --- libgeda/src/s_page.c | 3 +++ 1 files changed, 3 insertions(+), 0 deletions(-) diff --git a/libgeda/src/s_page.c b/libgeda/src/s_page.c index 5665f0b..b8cf355 100644 --- a/libgeda/src/s_page.c +++ b/libgeda/src/s_page.c @@ -76,6 +76,9 @@ object_added (TOPLEVEL *toplevel, PAGE *page, OBJECT *object) /* Update object connection tracking */ s_conn_update_object (toplevel, object); + /* Recalculate bounding box */ + o_recalc_single_object (toplevel, object); + o_emit_change_notify (toplevel, object); } -- 1.7.1