diff options
author | Chaosus <chaosus89@gmail.com> | 2019-05-25 18:55:35 +0300 |
---|---|---|
committer | Chaosus <chaosus89@gmail.com> | 2019-05-25 20:57:32 +0300 |
commit | e5f5a71d273c34aa817ac14c505ca10d6f019733 (patch) | |
tree | 03254b40d1adf9d172d7cf32d961ea04e5c475b9 | |
parent | a4b250d1aef8b84cf090ecd965628c9e616340c5 (diff) |
Fix "Index out of size" TextEdit's spam to output
-rw-r--r-- | scene/gui/text_edit.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/scene/gui/text_edit.cpp b/scene/gui/text_edit.cpp index acd2950b4c..490ef00dc8 100644 --- a/scene/gui/text_edit.cpp +++ b/scene/gui/text_edit.cpp @@ -4167,7 +4167,7 @@ void TextEdit::_scroll_moved(double p_to_val) { int v_scroll_i = floor(get_v_scroll()); int sc = 0; int n_line; - for (n_line = 0; n_line < text.size(); n_line++) { + for (n_line = 0; n_line < text.size() - 1; n_line++) { if (!is_line_hidden(n_line)) { sc++; sc += times_line_wraps(n_line); |