From 26de65cf2cde54d5d88fc85aa32c9b0fb51a8512 Mon Sep 17 00:00:00 2001 From: Sebastian Dransfeld Date: Wed, 18 Jan 2012 23:33:43 +0000 Subject: [PATCH] evas: before_char is only used with BIDI_SUPPORT SVN revision: 67303 --- legacy/evas/src/lib/canvas/evas_object_textblock.c | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/legacy/evas/src/lib/canvas/evas_object_textblock.c b/legacy/evas/src/lib/canvas/evas_object_textblock.c index ae5425cbf7..851f156d0c 100644 --- a/legacy/evas/src/lib/canvas/evas_object_textblock.c +++ b/legacy/evas/src/lib/canvas/evas_object_textblock.c @@ -8030,7 +8030,9 @@ evas_textblock_cursor_geometry_get(const Evas_Textblock_Cursor *cur, Evas_Coord * the position of the previous */ if ((cur->pos > 0) && !_evas_textblock_cursor_is_at_the_end(cur)) { +#ifdef BIDI_SUPPORT Eina_Bool before_char = EINA_FALSE; +#endif cur2.obj = cur->obj; evas_textblock_cursor_copy(cur, &cur2); evas_textblock_cursor_char_prev(&cur2); @@ -8040,12 +8042,16 @@ evas_textblock_cursor_geometry_get(const Evas_Textblock_Cursor *cur, Evas_Coord if (!fmt || !_IS_LINE_SEPARATOR(fmt->format)) { dir_cur = &cur2; +#ifdef BIDI_SUPPORT before_char = EINA_FALSE; +#endif } +#ifdef BIDI_SUPPORT else { before_char = EINA_TRUE; } +#endif ret = evas_textblock_cursor_pen_geometry_get( dir_cur, &x, &y, &w, &h); #ifdef BIDI_SUPPORT