From c7c74693f8dd9f8f7a32c3af468a08cd0d4be54b Mon Sep 17 00:00:00 2001 From: Youngbok Shin Date: Fri, 8 Dec 2017 13:32:53 +0900 Subject: [PATCH] evas textblock: fix wrong condition check for align keyword It caused wrong behavior for "auto" alignment. @tizen_fix Change-Id: I13ebce3e5907b519166ac4ba174affad9dcac3bd --- src/lib/evas/canvas/evas_object_textblock.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/lib/evas/canvas/evas_object_textblock.c b/src/lib/evas/canvas/evas_object_textblock.c index a00a9fe..f696d7e 100644 --- a/src/lib/evas/canvas/evas_object_textblock.c +++ b/src/lib/evas/canvas/evas_object_textblock.c @@ -1811,7 +1811,7 @@ _format_command(Evas_Object *eo_obj, Evas_Object_Textblock_Format *fmt, const ch { fmt->halign_auto = EVAS_TEXTBLOCK_ALIGN_AUTO_NORMAL; } - if (len == 6 && !strcmp(param, "locale")) + else if (len == 6 && !strcmp(param, "locale")) { fmt->halign_auto = EVAS_TEXTBLOCK_ALIGN_AUTO_LOCALE; } -- 2.7.4