From abfbaca44e4738d4e226873ec7ec9d2467fc76ee Mon Sep 17 00:00:00 2001 From: tasn Date: Mon, 1 Aug 2011 08:21:02 +0000 Subject: [PATCH] Evas textblock: Fixed if to be else if in format handling. git-svn-id: svn+ssh://svn.enlightenment.org/var/svn/e/trunk/evas@61938 7cbeb6ba-43b4-40fd-8cce-4c39aea84d33 --- src/lib/canvas/evas_object_textblock.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/lib/canvas/evas_object_textblock.c b/src/lib/canvas/evas_object_textblock.c index daf56af..88af629 100644 --- a/src/lib/canvas/evas_object_textblock.c +++ b/src/lib/canvas/evas_object_textblock.c @@ -1206,17 +1206,17 @@ _format_command(Evas_Object *obj, Evas_Object_Textblock_Format *fmt, const char 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, 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, 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, tmp_param + strlen(tmp_param), EVAS_FONT_STYLE_WIDTH); -- 2.7.4