[dia] Bug 614134 - align attribute of textboxes does not work



commit 96b9c43a0974b5bdac8a4507675fde396c42b12a
Author: Hans Breuer <hans breuer org>
Date:   Tue Jul 27 16:56:21 2010 +0200

    Bug 614134 -  align attribute of textboxes does not work
    
    The text_align given from the shape file was not used when creating new_text() of the custom object.

 objects/custom/custom_object.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/objects/custom/custom_object.c b/objects/custom/custom_object.c
index e30303c..547d1ce 100644
--- a/objects/custom/custom_object.c
+++ b/objects/custom/custom_object.c
@@ -1553,7 +1553,7 @@ custom_create(Point *startpoint,
     p.x += elem->width / 2.0;
     p.y += elem->height / 2.0 + font_height / 2;
     custom->text = new_text("", font, font_height, &p, &custom->border_color,
-                            default_properties.alignment);
+                            info->text_align);
     text_get_attributes(custom->text,&custom->attrs);
     dia_font_unref(font);
   }



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]