Evas font: Fix clang errors.
authortasn <tasn@7cbeb6ba-43b4-40fd-8cce-4c39aea84d33>
Thu, 10 Nov 2011 12:11:17 +0000 (12:11 +0000)
committertasn <tasn@7cbeb6ba-43b4-40fd-8cce-4c39aea84d33>
Thu, 10 Nov 2011 12:11:17 +0000 (12:11 +0000)
http://dev.enlightenment.fr/~discomfitor/evas-2011-11-09/report-qpiPpZ.html#EndPath

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

src/lib/engines/common/evas_font_query.c

index 8852c1b..af2cc84 100644 (file)
@@ -738,26 +738,26 @@ evas_common_font_query_last_up_to_pos(RGBA_Font *fn, const Evas_Text_Props *text
                }
 
              gli += text_props->len - 1;
-          }
 
-        for (i = text_props->len - 1 ; i >= 0 ; i--, gli--)
-          {
-             pen_x = full_adv - (gli->pen_after - start_pen);
-             /* If invisible, skip */
-             if (gli->index == 0) continue;
-             if ((x >= pen_x) &&
-                 (((i == 0) && (x <= full_adv)) ||
-                  (x <= (full_adv - (gli[-1].pen_after - start_pen)))) &&
-                 (y >= -asc) && (y <= desc))
+             for (i = text_props->len - 1 ; i >= 0 ; i--, gli--)
                {
+                  pen_x = full_adv - (gli->pen_after - start_pen);
+                  /* If invisible, skip */
+                  if (gli->index == 0) continue;
+                  if ((x >= pen_x) &&
+                        (((i == 0) && (x <= full_adv)) ||
+                         (x <= (full_adv - (gli[-1].pen_after - start_pen)))) &&
+                        (y >= -asc) && (y <= desc))
+                    {
 #ifdef OT_SUPPORT
-                  ret = EVAS_FONT_OT_POS_GET(
-                     text_props->info->ot[text_props->start + i]) -
-                     text_props->text_offset;
+                       ret = EVAS_FONT_OT_POS_GET(
+                             text_props->info->ot[text_props->start + i]) -
+                          text_props->text_offset;
 #else
-                  ret = text_props->text_len - i - 1;
+                       ret = text_props->text_len - i - 1;
 #endif
-                  goto end;
+                       goto end;
+                    }
                }
           }
      }