do not force full textgrid width update if preedit_str is ""

in many cases this will be the value which has been set, so ignoring it
will yield moderate performance improvements

Reviewed-by: Boris Faure <billiob@gmail.com>
This commit is contained in:
Mike Blumenkrantz 2015-12-15 17:29:44 -05:00
parent f731ff6ada
commit 7f53f4daf7
1 changed files with 1 additions and 1 deletions

View File

@ -4821,7 +4821,7 @@ _smart_apply(Evas_Object *obj)
evas_object_textgrid_update_add(sd->grid.obj, ch1, y,
ch2 - ch1 + 1, 1);
}
if (sd->preedit_str)
if (sd->preedit_str && sd->preedit_str[0])
{
Eina_Unicode *uni, g;
int len = 0, i, jump, xx, backx;