evas/evas_object_textblock : When cursor_mode is BEFORE, dir_cur->node
authorwoohyun <woohyun@7cbeb6ba-43b4-40fd-8cce-4c39aea84d33>
Wed, 5 Oct 2011 07:29:06 +0000 (07:29 +0000)
committerwoohyun <woohyun@7cbeb6ba-43b4-40fd-8cce-4c39aea84d33>
Wed, 5 Oct 2011 07:29:06 +0000 (07:29 +0000)
can be NULL. So modified the conditional state.

git-svn-id: svn+ssh://svn.enlightenment.org/var/svn/e/trunk/evas@63824 7cbeb6ba-43b4-40fd-8cce-4c39aea84d33

src/lib/canvas/evas_object_textblock.c

index 060e77d..b87eed5 100644 (file)
@@ -7710,7 +7710,7 @@ evas_textblock_cursor_geometry_get(const Evas_Textblock_Cursor *cur, Evas_Coord
                    dir_cur, &x, &y, &w, &h);
 #ifdef BIDI_SUPPORT
              Eina_Bool is_rtl = EINA_FALSE;
-             if (dir_cur->node->par->is_bidi)
+             if (dir_cur->node && dir_cur->node->par->is_bidi)
                {
                   Evas_Object_Textblock_Line *ln;
                   Evas_Object_Textblock_Item *it;