Evas textblock: Fixed a seg and the documentation error that caused it.
authortasn <tasn@7cbeb6ba-43b4-40fd-8cce-4c39aea84d33>
Sun, 30 Jan 2011 10:41:49 +0000 (10:41 +0000)
committertasn <tasn@7cbeb6ba-43b4-40fd-8cce-4c39aea84d33>
Sun, 30 Jan 2011 10:41:49 +0000 (10:41 +0000)
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

index de50942..8f2ced5 100644 (file)
@@ -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;
 }
 
 /*