hermet pushed a commit to branch master.

http://git.enlightenment.org/core/efl.git/commit/?id=e973390f647ae00585746f299dae1dcd74aaba5c

commit e973390f647ae00585746f299dae1dcd74aaba5c
Author: ChunEon Park <[email protected]>
Date:   Wed May 28 14:07:20 2014 +0900

    evas/textblock - null check format.
    
    logically it's insane that it doesn't check the null there but it checks 
right next line.
---
 src/lib/evas/canvas/evas_object_textblock.c | 7 +++++--
 1 file changed, 5 insertions(+), 2 deletions(-)

diff --git a/src/lib/evas/canvas/evas_object_textblock.c 
b/src/lib/evas/canvas/evas_object_textblock.c
index bc0430d..7fd659b 100644
--- a/src/lib/evas/canvas/evas_object_textblock.c
+++ b/src/lib/evas/canvas/evas_object_textblock.c
@@ -10276,8 +10276,11 @@ _size_native_calc_line_finalize(const Evas_Object 
*eo_obj, Eina_List *items,
         Evas_Coord asc = 0, desc = 0;
         /* If there are no text items yet, calc ascent/descent
          * according to the current format. */
-        _layout_item_ascent_descent_adjust(eo_obj, &asc, &desc,
-              it, it->format);
+        if (it->format)
+          {
+             _layout_item_ascent_descent_adjust(eo_obj, &asc, &desc,
+                                                it, it->format);
+          }
 
         if (asc > *ascent)
            *ascent = asc;

-- 


Reply via email to