Evas textblock: Fixed compilation without fribidi.
authortasn <tasn@7cbeb6ba-43b4-40fd-8cce-4c39aea84d33>
Thu, 2 Sep 2010 11:53:40 +0000 (11:53 +0000)
committertasn <tasn@7cbeb6ba-43b4-40fd-8cce-4c39aea84d33>
Thu, 2 Sep 2010 11:53:40 +0000 (11:53 +0000)
git-svn-id: http://svn.enlightenment.org/svn/e/trunk/evas@51836 7cbeb6ba-43b4-40fd-8cce-4c39aea84d33

src/lib/engines/common/evas_font_query.c

index c5a2fd7..9ba101d 100644 (file)
@@ -368,7 +368,7 @@ evas_common_font_query_char_coords(RGBA_Font *fn, const Eina_Unicode *in_text, c
    asc = evas_common_font_max_ascent_get(fn);
    desc = evas_common_font_max_descent_get(fn);
 
-#ifdef BIDI_SUPPORT 
+#ifdef BIDI_SUPPORT
    /* Get the position in the visual string because those are the coords we care about */
    position = evas_bidi_position_logical_to_visual(visual_to_logical, len, pos);
 #else
@@ -379,6 +379,7 @@ evas_common_font_query_char_coords(RGBA_Font *fn, const Eina_Unicode *in_text, c
      {
         /* if it's rtl then the location is the left of the string,
          * otherwise, the right. */
+#ifdef BIDI_SUPPORT
         if (intl_props &&
               EVAS_BIDI_PARAGRAPH_DIRECTION_IS_RTL(intl_props->props))
           {
@@ -386,6 +387,7 @@ evas_common_font_query_char_coords(RGBA_Font *fn, const Eina_Unicode *in_text, c
              if (ch) *ch = asc + desc;
           }
         else
+#endif
           {
              evas_common_font_query_size(fn, text, intl_props, cx, ch);
           }