edje: Fix Coverity CID1261437
authorChris Michael <cp.michael@samsung.com>
Fri, 9 Jan 2015 20:28:55 +0000 (15:28 -0500)
committerChris Michael <cp.michael@samsung.com>
Fri, 9 Jan 2015 20:28:55 +0000 (15:28 -0500)
Summary: Coverity reports idential code for different branches here.
Not sure WHY that was done, but I commented out the existing if
statement for posterity.

@fix

Signed-off-by: Chris Michael <cp.michael@samsung.com>
src/lib/edje/edje_entry.c

index 5d7097f..52e329d 100644 (file)
@@ -3626,9 +3626,9 @@ _edje_entry_cursor_down(Edje_Real_Part *rp, Edje_Cursor cur)
    evas_textblock_cursor_char_geometry_get(c, &cx, &cy, &cw, &ch);
    if (!evas_textblock_cursor_char_coord_set(c, cx, ly + (lh / 2)))
      {
-        if (cx < (lx + (lw / 2)))
-          evas_textblock_cursor_line_char_last(c);
-        else
+        /* if (cx < (lx + (lw / 2))) */
+        /*   evas_textblock_cursor_line_char_last(c); */
+        /* else */
           evas_textblock_cursor_line_char_last(c);
      }
    _sel_update(en->ed, c, rp->object, rp->typedata.text->entry_data);