summaryrefslogtreecommitdiff
path: root/src/lib
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--src/lib/efl/interfaces/efl_ui_format.c7
1 files changed, 5 insertions, 2 deletions
diff --git a/src/lib/efl/interfaces/efl_ui_format.c b/src/lib/efl/interfaces/efl_ui_format.c
index e722d22654..f6f1b811e2 100644
--- a/src/lib/efl/interfaces/efl_ui_format.c
+++ b/src/lib/efl/interfaces/efl_ui_format.c
@@ -38,6 +38,8 @@ _format_string_check(const char *fmt)
38 if (itr[1] == '%') 38 if (itr[1] == '%')
39 { 39 {
40 itr++; 40 itr++;
41 if (ret_type == FORMAT_TYPE_STATIC)
42 ret_type = FORMAT_TYPE_STRING;
41 continue; 43 continue;
42 } 44 }
43 45
@@ -69,7 +71,8 @@ _format_string_check(const char *fmt)
69 } 71 }
70 else 72 else
71 { 73 {
72 ret_type = FORMAT_TYPE_INVALID; 74 ERR("Format string '%s' has unknown format element '%c' in format. It must have one format element of type 's', 'f', 'F', 'd', 'u', 'i', 'o', 'x' or 'X'", fmt, *itr);
75 found = EINA_FALSE;
73 break; 76 break;
74 } 77 }
75 } 78 }
@@ -121,7 +124,7 @@ _default_format_cb(void *data, Eina_Strbuf *str, const Eina_Value value)
121 } 124 }
122 else if (sd->format_type == FORMAT_TYPE_STATIC) 125 else if (sd->format_type == FORMAT_TYPE_STATIC)
123 { 126 {
124 eina_strbuf_append_printf(str, "%s", sd->template); 127 eina_strbuf_append(str, sd->template);
125 } 128 }
126 else 129 else
127 { 130 {