From 8a66ea7cb05fe666155f51e0cb5a9e817226c527 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?R=C3=A9mi=20Verschelde?= Date: Tue, 1 Sep 2020 14:01:50 +0200 Subject: [PATCH] Revert "Updated LineEdit to address #41278" This reverts commit 1b6d116dfbf5c93a5bf60b725075e7893bc97dfb. --- scene/gui/line_edit.cpp | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/scene/gui/line_edit.cpp b/scene/gui/line_edit.cpp index 7474e885c53..805297d5ac3 100644 --- a/scene/gui/line_edit.cpp +++ b/scene/gui/line_edit.cpp @@ -1263,12 +1263,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();