elementary entry: fix limit size issue in the password mode 56/253556/2
authorYoungbok Shin <youngb.shin@samsung.com>
Mon, 15 Feb 2021 10:14:24 +0000 (19:14 +0900)
committerYoungbok Shin <youngb.shin@samsung.com>
Mon, 15 Feb 2021 10:27:03 +0000 (10:27 +0000)
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

index e457d14..81c19b1 100644 (file)
@@ -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);