[label] bugfix off-by-1 at ellipsis chars cutting
authorHyoyoung Chang <hyoyoung.chang@samsung.com>
Tue, 18 Jan 2011 06:08:00 +0000 (15:08 +0900)
committerHyoyoung Chang <hyoyoung.chang@samsung.com>
Tue, 18 Jan 2011 06:08:00 +0000 (15:08 +0900)
src/lib/elm_label.c

index 406866a..776b9e0 100644 (file)
@@ -452,7 +452,7 @@ _ellipsis_cut_chars_to_widget(Evas_Object *obj)
           }
      }
 
-   for (i = 0; i <= mincount; i++) evas_textblock_cursor_char_prev(tc2);
+   for (i = 0; i < mincount; i++) evas_textblock_cursor_char_prev(tc2);
    cutstr = evas_textblock_cursor_range_text_get(tc1, tc2, EVAS_TEXTBLOCK_TEXT_PLAIN);
    if (!cutstr) return EINA_FALSE;