Revert "Fixed 0 width issue of rich text label"
This reverts commit a1155b86e4
.
This commit is contained in:
parent
cd76891dbf
commit
fd968157a4
1 changed files with 2 additions and 2 deletions
|
@ -415,7 +415,7 @@ int RichTextLabel::_process_line(ItemFrame *p_frame, const Vector2 &p_ofs, int &
|
|||
cw = tab_size * font->get_char_size(' ').width;
|
||||
}
|
||||
|
||||
if (end > 0 && fw + cw + begin > p_width) {
|
||||
if (end > 0 && w + cw + begin > p_width) {
|
||||
break; //don't allow lines longer than assigned width
|
||||
}
|
||||
|
||||
|
@ -443,7 +443,7 @@ int RichTextLabel::_process_line(ItemFrame *p_frame, const Vector2 &p_ofs, int &
|
|||
end++;
|
||||
}
|
||||
CHECK_HEIGHT(fh);
|
||||
ENSURE_WIDTH(fw);
|
||||
ENSURE_WIDTH(w);
|
||||
|
||||
line_ascent = MAX(line_ascent, ascent);
|
||||
line_descent = MAX(line_descent, descent);
|
||||
|
|
Loading…
Reference in a new issue