Revert "Updated LineEdit to address #41278"

This reverts commit 71febfd6e2.
This commit is contained in:
Rémi Verschelde 2020-09-01 14:04:37 +02:00
parent 877246a78e
commit 7844775a76
No known key found for this signature in database
GPG key ID: C3336907360768E1

View file

@ -1281,12 +1281,7 @@ void LineEdit::delete_text(int p_from_column, int p_to_column) {
void LineEdit::set_text(String p_text) {
clear_internal();
if (p_text.length() > max_length) {
append_at_cursor(p_text.substr(0, max_length));
} else {
append_at_cursor(p_text);
}
append_at_cursor(p_text);
if (expand_to_text_length) {
minimum_size_changed();