Evas textblock: Fixed if to be else if in format handling.

SVN revision: 61938
This commit is contained in:
Tom Hacohen 2011-08-01 08:21:02 +00:00
parent b3995dfc6c
commit d3cbb5e584
1 changed files with 3 additions and 3 deletions

View File

@ -1206,17 +1206,17 @@ _format_command(Evas_Object *obj, Evas_Object_Textblock_Format *fmt, const char
fmt->font.source = eina_stringshare_add(tmp_param); fmt->font.source = eina_stringshare_add(tmp_param);
} }
} }
if (cmd == font_weightstr) else if (cmd == font_weightstr)
{ {
fmt->font.fdesc->weight = evas_font_style_find(tmp_param, fmt->font.fdesc->weight = evas_font_style_find(tmp_param,
tmp_param + strlen(tmp_param), EVAS_FONT_STYLE_WEIGHT); tmp_param + strlen(tmp_param), EVAS_FONT_STYLE_WEIGHT);
} }
if (cmd == font_stylestr) else if (cmd == font_stylestr)
{ {
fmt->font.fdesc->slant = evas_font_style_find(tmp_param, fmt->font.fdesc->slant = evas_font_style_find(tmp_param,
tmp_param + strlen(tmp_param), EVAS_FONT_STYLE_SLANT); tmp_param + strlen(tmp_param), EVAS_FONT_STYLE_SLANT);
} }
if (cmd == font_widthstr) else if (cmd == font_widthstr)
{ {
fmt->font.fdesc->width = evas_font_style_find(tmp_param, fmt->font.fdesc->width = evas_font_style_find(tmp_param,
tmp_param + strlen(tmp_param), EVAS_FONT_STYLE_WIDTH); tmp_param + strlen(tmp_param), EVAS_FONT_STYLE_WIDTH);