Evas textblock: Fixed range geometry when the last item is a format.
authortasn <tasn@7cbeb6ba-43b4-40fd-8cce-4c39aea84d33>
Tue, 14 Aug 2012 12:40:41 +0000 (12:40 +0000)
committertasn <tasn@7cbeb6ba-43b4-40fd-8cce-4c39aea84d33>
Tue, 14 Aug 2012 12:40:41 +0000 (12:40 +0000)
git-svn-id: http://svn.enlightenment.org/svn/e/trunk/evas@75257 7cbeb6ba-43b4-40fd-8cce-4c39aea84d33

ChangeLog
src/lib/canvas/evas_object_textblock.c

index 3dc79f0..3ad64c7 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
 2012-08-13  Carsten Haitzler (The Rasterman)
 
        * Fix async fd stuff to generate new pipe after a fork (pid mismatch)
+
+2012-08-14  Tom Hacohen (TAsn)
+
+       * Textblock: Fixed range geometry when the last item is a format.
index 0426bf3..4428257 100644 (file)
@@ -8928,8 +8928,16 @@ _evas_textblock_cursor_range_in_line_geometry_get(
           }
         else
           {
-             x = 0;
-             w = it2->w;
+             if (end > 0)
+               {
+                  x = it2->adv;
+                  w = 0;
+               }
+             else
+               {
+                  x = 0;
+                  w = it2->adv;
+               }
              _evas_textblock_range_calc_x_w(it2, &x, &w, EINA_FALSE,
                         switch_items);
           }