[dia] custom: restore default to only grow the box with text



commit c7371d884e4a314a7e3f900e62d564b7815718ec
Author: Hans Breuer <hans breuer org>
Date:   Sun Aug 24 16:13:30 2014 +0200

    custom: restore default to only grow the box with text
    
    Text-fitting was set to ALWAYS but that does not change the behavior
    to the better when there is no text.

 objects/custom/custom_object.c |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/objects/custom/custom_object.c b/objects/custom/custom_object.c
index c03942f..934903e 100644
--- a/objects/custom/custom_object.c
+++ b/objects/custom/custom_object.c
@@ -1571,8 +1571,8 @@ custom_create(Point *startpoint,
                             info->text_align);
     dia_font_unref(font);
 
-    /* new default: shrink with textbox, too. */
-    custom->text_fitting = (info->resize_with_text ? TEXTFIT_ALWAYS : TEXTFIT_NEVER);
+    /* _no_ new default: does not shrink with textbox automatically. */
+    custom->text_fitting = (info->resize_with_text ? TEXTFIT_WHEN_NEEDED : TEXTFIT_NEVER);
   }
   shape_info_realise(custom->info);
   element_init(elem, 8, info->nconnections);


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