Evas textblock: Fixed selection drawing with multiline mixed ltr/rtl.
authortasn <tasn@7cbeb6ba-43b4-40fd-8cce-4c39aea84d33>
Sun, 30 Jan 2011 10:32:39 +0000 (10:32 +0000)
committertasn <tasn@7cbeb6ba-43b4-40fd-8cce-4c39aea84d33>
Sun, 30 Jan 2011 10:32:39 +0000 (10:32 +0000)
git-svn-id: http://svn.enlightenment.org/svn/e/trunk/evas@56418 7cbeb6ba-43b4-40fd-8cce-4c39aea84d33

src/lib/canvas/evas_object_textblock.c

index faac719..65ad20f 100644 (file)
@@ -7201,8 +7201,8 @@ _evas_textblock_cursor_range_in_line_geometry_get(
      }
    else
      {
-        start = (cur2) ? (cur2->pos - it1->text_pos) : 0;
-        end = (cur1) ? (cur1->pos - it2->text_pos) : end;
+        start = (cur2) ? (cur2->pos - it1->text_pos) : end;
+        end = (cur1) ? (cur1->pos - it2->text_pos) : 0;
         switch_items = EINA_TRUE;
      }