[dia] Bug 607564 - custom shape svg:text elements positioned wrong
- From: Hans Breuer <hans src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [dia] Bug 607564 - custom shape svg:text elements positioned wrong
- Date: Wed, 20 Oct 2010 19:29:08 +0000 (UTC)
commit fb449723e36a92a43fc3a15e565a6ff4556d4ee9
Author: Hans Breuer <hans breuer org>
Date: Wed Oct 20 21:26:43 2010 +0200
Bug 607564 - custom shape svg:text elements positioned wrong
custom_distance_from(), custom_draw() and custom_update_data() are
modifying the conceptionally const display_list, i.e. the Text object
contained (shared between all object instances), but update_data was
not restoring the previous state.
objects/custom/custom_object.c | 2 ++
1 files changed, 2 insertions(+), 0 deletions(-)
---
diff --git a/objects/custom/custom_object.c b/objects/custom/custom_object.c
index 0903334..77d39e0 100644
--- a/objects/custom/custom_object.c
+++ b/objects/custom/custom_object.c
@@ -1454,6 +1454,8 @@ custom_update_data(Custom *custom, AnchorShape horiz, AnchorShape vert)
custom_reposition_text(custom, &el->text);
text_calc_boundingbox(el->text.object,&rect);
/* padding only to be applied on the users text box */
+ /* but we need to restore the original position of the 'constant' object */
+ text_set_position(el->text.object, &el->text.anchor);
break;
default :
g_assert_not_reached();
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]