evas: don't add wrong rect for empty line 15/210515/1
authorBowon Ryu <bowon.ryu@samsung.com>
Mon, 22 Jul 2019 05:27:44 +0000 (14:27 +0900)
committerBowon Ryu <bowon.ryu@samsung.com>
Mon, 22 Jul 2019 05:27:54 +0000 (14:27 +0900)
@tizen_fix

Change-Id: Ic350fa02785584af2944ddcb05c994f122873785
Signed-off-by: Bowon Ryu <bowon.ryu@samsung.com>
src/lib/evas/canvas/evas_object_textblock.c

index 91b9658..9ae63a9 100644 (file)
@@ -13650,11 +13650,19 @@ _evas_textblock_cursor_range_in_line_geometry_get(
      {
         Evas_Coord x, w;
         x = 0;
+        /* TIZEN_ONLY(20180706): don't add wrong rect for empty line
         w = it1->w;
         _evas_textblock_range_calc_x_w(it1, &x, &w, EINA_TRUE,
                                        switch_items);
+        */
+        w = (cur1) ? it1->w : 0;
+        /* END */
         if (w > 0)
           {
+             /* TIZEN_ONLY(20180706): don't add wrong rect for empty line */
+             _evas_textblock_range_calc_x_w(it1, &x, &w, EINA_TRUE,
+                                            switch_items);
+             /* END */
              tr = calloc(1, sizeof(Evas_Textblock_Rectangle));
              rects = eina_list_append(rects, tr);
              tr->x = ln->x + it1->x + x;