summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRĂ©mi Verschelde <rverschelde@gmail.com>2017-12-13 22:03:52 +0100
committerGitHub <noreply@github.com>2017-12-13 22:03:52 +0100
commit8771329f5554f74320f21aa2e1620f9ba1d6f044 (patch)
tree755cb01d12a0aadb9506f68f997b9954210b39b9
parent1c0007ba71bfc1d42213e9feaa0ab3a867f2e163 (diff)
parentf08768c18916c91f756cf99d8c060e1b6acafdf1 (diff)
Merge pull request #14633 from poke1024/fix-richtextlabel-crash
Fix crash (and bug) in RichTextLabel
-rw-r--r--scene/gui/rich_text_label.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/scene/gui/rich_text_label.cpp b/scene/gui/rich_text_label.cpp
index 45188c3a52..05c6e9f77e 100644
--- a/scene/gui/rich_text_label.cpp
+++ b/scene/gui/rich_text_label.cpp
@@ -453,7 +453,7 @@ int RichTextLabel::_process_line(ItemFrame *p_frame, const Vector2 &p_ofs, int &
for (int i = 0; i < frame->lines.size(); i++) {
_process_line(frame, Point2(), ly, p_width, i, PROCESS_CACHE, cfont, Color());
- table->columns[column].min_width = MAX(table->columns[i].min_width, frame->lines[i].minimum_width);
+ table->columns[column].min_width = MAX(table->columns[column].min_width, frame->lines[i].minimum_width);
}
idx++;
}