[dia] [flowchart] Always initialize TextAttributes after Text*
- From: Hans Breuer <hans src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [dia] [flowchart] Always initialize TextAttributes after Text*
- Date: Sun, 2 Jan 2011 18:26:34 +0000 (UTC)
commit 4918a72bb22249a2d4a8f24a6efc378b7cf9bc8f
Author: Hans Breuer <hans breuer org>
Date: Mon Dec 27 15:07:25 2010 +0100
[flowchart] Always initialize TextAttributes after Text*
objects/flowchart/box.c | 1 +
objects/flowchart/diamond.c | 1 +
objects/flowchart/ellipse.c | 1 +
objects/flowchart/parallelogram.c | 1 +
4 files changed, 4 insertions(+), 0 deletions(-)
---
diff --git a/objects/flowchart/box.c b/objects/flowchart/box.c
index 8a16a89..339e1c0 100644
--- a/objects/flowchart/box.c
+++ b/objects/flowchart/box.c
@@ -781,6 +781,7 @@ box_load(ObjectNode obj_node, int version, const char *filename)
box->text = data_text(attribute_first_data(attr));
else /* paranoid */
box->text = new_text_default(&obj->position, &box->border_color, ALIGN_CENTER);
+ text_get_attributes(box->text,&box->attrs);
/* old default: only growth, manual shrink */
box->text_fitting = TEXTFIT_WHEN_NEEDED;
diff --git a/objects/flowchart/diamond.c b/objects/flowchart/diamond.c
index ebea6d9..fb052f1 100644
--- a/objects/flowchart/diamond.c
+++ b/objects/flowchart/diamond.c
@@ -662,6 +662,7 @@ diamond_load(ObjectNode obj_node, int version, const char *filename)
diamond->text = data_text(attribute_first_data(attr));
else /* paranoid */
diamond->text = new_text_default(&obj->position, &diamond->border_color, ALIGN_CENTER);
+ text_get_attributes(diamond->text, &diamond->attrs);
/* old default: only growth, manual shrink */
diamond->text_fitting = TEXTFIT_WHEN_NEEDED;
diff --git a/objects/flowchart/ellipse.c b/objects/flowchart/ellipse.c
index eaff544..6c93b85 100644
--- a/objects/flowchart/ellipse.c
+++ b/objects/flowchart/ellipse.c
@@ -637,6 +637,7 @@ ellipse_load(ObjectNode obj_node, int version, const char *filename)
ellipse->text = data_text(attribute_first_data(attr));
else
ellipse->text = new_text_default(&obj->position, &ellipse->border_color, ALIGN_CENTER);
+ text_get_attributes(ellipse->text, &ellipse->attrs);
/* old default: only growth, manual shrink */
ellipse->text_fitting = TEXTFIT_WHEN_NEEDED;
attr = object_find_attribute(obj_node, PROP_STDNAME_TEXT_FITTING);
diff --git a/objects/flowchart/parallelogram.c b/objects/flowchart/parallelogram.c
index 651168d..5ef62db 100644
--- a/objects/flowchart/parallelogram.c
+++ b/objects/flowchart/parallelogram.c
@@ -726,6 +726,7 @@ pgram_load(ObjectNode obj_node, int version, const char *filename)
pgram->text = data_text(attribute_first_data(attr));
else /* paranoid */
pgram->text = new_text_default(&obj->position, &pgram->border_color, ALIGN_CENTER);
+ text_get_attributes(pgram->text, &pgram->attrs);
/* old default: only growth, manual shrink */
pgram->text_fitting = TEXTFIT_WHEN_NEEDED;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]