Enlightenment CVS committal

Author  : rbdpngn
Project : e17
Module  : libs/ewl

Dir     : e17/libs/ewl/src/lib


Modified Files:
        ewl_text.c 


Log Message:
Compensate for 0 height when no text is present in tb2.

===================================================================
RCS file: /cvsroot/enlightenment/e17/libs/ewl/src/lib/ewl_text.c,v
retrieving revision 1.34
retrieving revision 1.35
diff -u -3 -r1.34 -r1.35
--- ewl_text.c  27 Oct 2005 03:14:07 -0000      1.34
+++ ewl_text.c  28 Oct 2005 02:28:00 -0000      1.35
@@ -4212,9 +4212,11 @@
        * the font, if we don't have a font size, make it 1 */
        if (!h) 
        {
-               int size;
-               size = ewl_text_font_size_get(t, 0);
-               h = size;
+               Evas_Textblock_Cursor *cursor;
+
+               cursor = (Evas_Textblock_Cursor 
*)evas_object_textblock2_cursor_get(t->textblock);
+               evas_textblock2_cursor_text_append(cursor, " ");
+               evas_object_textblock2_size_native_get(t->textblock, &w, &h);
                if (!h) h = 1;
        }
 




-------------------------------------------------------
This SF.Net email is sponsored by the JBoss Inc.
Get Certified Today * Register for a JBoss Training Course
Free Certification Exam for All Training Attendees Through End of 2005
Visit http://www.jboss.com/services/certification for more information
_______________________________________________
enlightenment-cvs mailing list
enlightenment-cvs@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/enlightenment-cvs

Reply via email to