edje/edje_entry : Fix a bug. Wrong calculation for text length.
authorwoohyun <woohyun@7cbeb6ba-43b4-40fd-8cce-4c39aea84d33>
Wed, 28 Dec 2011 10:27:06 +0000 (10:27 +0000)
committerwoohyun <woohyun@7cbeb6ba-43b4-40fd-8cce-4c39aea84d33>
Wed, 28 Dec 2011 10:27:06 +0000 (10:27 +0000)
git-svn-id: http://svn.enlightenment.org/svn/e/trunk/edje@66596 7cbeb6ba-43b4-40fd-8cce-4c39aea84d33

src/lib/edje_entry.c

index d8601cf..a6c1c04 100644 (file)
@@ -3050,7 +3050,7 @@ _edje_entry_imf_event_preedit_changed_cb(void *data, int type __UNUSED__, void *
                     {
                        eina_strbuf_append(buf, "<preedit>");
                        eina_strbuf_append_n(buf, preedit_string + attr->start_index,
-                                            attr->end_index - attr->start_index + 1);
+                                            attr->end_index - attr->start_index);
                        eina_strbuf_append(buf, "</preedit>");
                     }
 
@@ -3059,7 +3059,7 @@ _edje_entry_imf_event_preedit_changed_cb(void *data, int type __UNUSED__, void *
                     {
                        eina_strbuf_append(buf, "<preedit_sel>");
                        eina_strbuf_append_n(buf, preedit_string + attr->start_index,
-                                            attr->end_index - attr->start_index + 1);
+                                            attr->end_index - attr->start_index);
                        eina_strbuf_append(buf, "</preedit_sel>");
                     }
                }