From 07bc86167b0b0751484be56ac92378b68499bca4 Mon Sep 17 00:00:00 2001 From: Hyoyoung Chang Date: Tue, 18 Jan 2011 15:08:00 +0900 Subject: [PATCH] [label] bugfix off-by-1 at ellipsis chars cutting --- src/lib/elm_label.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/lib/elm_label.c b/src/lib/elm_label.c index 406866a..776b9e0 100644 --- a/src/lib/elm_label.c +++ b/src/lib/elm_label.c @@ -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; -- 2.7.4