Check if the font size really needs to be changed

Changing the font size also causes the current selection to be lost, so it's
nice to avoid it when not needed.
This commit is contained in:
Arnout Engelen 2016-05-26 17:57:46 +02:00
parent cd0f61dd26
commit 4e5a07e795
1 changed files with 1 additions and 1 deletions

View File

@ -450,7 +450,7 @@ _font_size_set(Evas_Object *obj, int size)
if (size < 5) size = 5;
else if (size > 100) size = 100;
if (config)
if (config && config->font.size != size)
{
config->temporary = EINA_TRUE;
config->font.size = size;