summaryrefslogtreecommitdiff
path: root/scene/gui/rich_text_label.cpp
diff options
context:
space:
mode:
authorpoke1024 <poke1024@gmx.de>2017-12-13 20:22:47 +0100
committerpoke1024 <poke1024@gmx.de>2017-12-13 20:22:47 +0100
commitf08768c18916c91f756cf99d8c060e1b6acafdf1 (patch)
tree755cb01d12a0aadb9506f68f997b9954210b39b9 /scene/gui/rich_text_label.cpp
parent1c0007ba71bfc1d42213e9feaa0ab3a867f2e163 (diff)
Fix crash (and bug) in RichTextLabel
Diffstat (limited to 'scene/gui/rich_text_label.cpp')
-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++;
}