From: <enl...@li...> - 2005-02-19 05:07:18
|
Enlightenment CVS committal Author : raster Project : e17 Module : libs/evas Dir : e17/libs/evas/src/lib/canvas Modified Files: evas_object_textblock.c Log Message: fix some native size stuff... =================================================================== RCS file: /cvsroot/enlightenment/e17/libs/evas/src/lib/canvas/evas_object_textblock.c,v retrieving revision 1.41 retrieving revision 1.42 diff -u -3 -r1.41 -r1.42 --- evas_object_textblock.c 18 Feb 2005 09:44:27 -0000 1.41 +++ evas_object_textblock.c 19 Feb 2005 05:07:11 -0000 1.42 @@ -177,6 +177,7 @@ layout->line.advance = 0; layout->align = 0.0; layout->valign = -1.0; + layout->style = STYLE_PLAIN; layout->word_wrap = 0; layout->underline = 0; layout->second_underline = 0; @@ -836,7 +837,10 @@ fw = layout.line.x + hadvance; layout.line.x += hadvance; lnode->layout.line.advance = hadvance; - if (layout.line.x >= ww) goto newline; + if (w > 0) + { + if (layout.line.x >= ww) goto newline; + } } else { @@ -1178,6 +1182,7 @@ o->native.w = fw; o->native.h = fh; o->native.lines = lines; + o->native.dirty = 0; } static Node * |