From 7497f9ccd37a691b547f5556e763c4d5559a1e0b Mon Sep 17 00:00:00 2001 From: Youngbok Shin Date: Mon, 15 Feb 2021 19:14:24 +0900 Subject: [PATCH] elementary entry: fix limit size issue in the password mode The elm_entry always give plain text in the password mode. When it needs to calculate the length of the current text, the current text should be handled as a plain text. @tizen_fix Change-Id: Ia8e9cab9196e209f86334f40ce06c2de8aa3fb18 --- src/lib/elementary/elm_entry.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/lib/elementary/elm_entry.c b/src/lib/elementary/elm_entry.c index e457d14..81c19b1 100644 --- a/src/lib/elementary/elm_entry.c +++ b/src/lib/elementary/elm_entry.c @@ -6488,6 +6488,11 @@ elm_entry_filter_limit_size(void *data, * scrolled_entry */ text_get = _text_get; + /* TIZEN_ONLY(20210215): fix limit size issue in the password mode */ + if (elm_entry_password_get(entry) && text_get(entry)) + current = strdup(text_get(entry)); + else + /* END */ current = elm_entry_markup_to_utf8(text_get(entry)); utfstr = elm_entry_markup_to_utf8(*text); -- 2.7.4