diff options
author | Rémi Verschelde <rverschelde@gmail.com> | 2020-09-01 14:04:37 +0200 |
---|---|---|
committer | Rémi Verschelde <rverschelde@gmail.com> | 2020-09-01 14:04:37 +0200 |
commit | 7844775a76fbc50e725e7f0c3aebb944b5e2b066 (patch) | |
tree | e5649f6f16b17ed0756888e59c1b5ef5d831c224 /scene | |
parent | 877246a78e4316d8458456c1c34e1afa8619659b (diff) |
Revert "Updated LineEdit to address #41278"
This reverts commit 71febfd6e2f6187fcc106ce715124cf173bfa0b8.
Diffstat (limited to 'scene')
-rw-r--r-- | scene/gui/line_edit.cpp | 7 |
1 files changed, 1 insertions, 6 deletions
diff --git a/scene/gui/line_edit.cpp b/scene/gui/line_edit.cpp index 162949fd69..14167531a5 100644 --- a/scene/gui/line_edit.cpp +++ b/scene/gui/line_edit.cpp @@ -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(); |