elm_code: Don't refresh if fonts did not change

This commit is contained in:
Andy Williams 2017-04-06 23:29:38 +01:00
parent 1bd7b576bd
commit b5761fc227
1 changed files with 3 additions and 0 deletions

View File

@ -2056,6 +2056,9 @@ _elm_code_widget_font_set(Eo *obj EINA_UNUSED, Elm_Code_Widget_Data *pd,
if (!face)
face = "Mono";
if (size == pd->font_size && !strcmp(face, pd->font_name))
return;
EINA_LIST_FOREACH(pd->grids, item, grid)
{
evas_object_textgrid_font_set(grid, face, size * elm_config_scale_get());