From dd35d291aa6acda61d725dfd6ea648b77b4b8728 Mon Sep 17 00:00:00 2001 From: tasn Date: Sun, 30 Jan 2011 10:41:49 +0000 Subject: [PATCH] Evas textblock: Fixed a seg and the documentation error that caused it. git-svn-id: svn+ssh://svn.enlightenment.org/var/svn/e/trunk/evas@56505 7cbeb6ba-43b4-40fd-8cce-4c39aea84d33 --- src/lib/canvas/evas_object_textblock.c | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/src/lib/canvas/evas_object_textblock.c b/src/lib/canvas/evas_object_textblock.c index de50942..8f2ced5 100644 --- a/src/lib/canvas/evas_object_textblock.c +++ b/src/lib/canvas/evas_object_textblock.c @@ -2728,7 +2728,7 @@ skip: * * @param c the current context- NOT NULL. * @param n the source format node - not null. - * @param item the format text - not null. + * @param item the format text. * * @return the new format item. */ @@ -3164,7 +3164,7 @@ _layout_visualize_par(Ctxt *c) Evas_Object_Textblock_Format_Item *fi; fi = _ITEM_FORMAT(it); fi->y = c->y; - if (_IS_LINE_SEPARATOR(fi->item)) + if (fi->item && _IS_LINE_SEPARATOR(fi->item)) { adv_line = 1; } @@ -3388,8 +3388,6 @@ _layout(const Evas_Object *obj, int calc_only, int w, int h, int *w_ret, int *h_ _layout(obj, calc_only, w, h, w_ret, h_ret); return; } - - return; } /* -- 2.7.4