Skip to content

Commit

Permalink
Fixed underlines and striketrough not respecting visible character
Browse files Browse the repository at this point in the history
(cherry picked from commit 9c2c2ab)
  • Loading branch information
Janglee123 authored and akien-mga committed Mar 2, 2022
1 parent c4041ca commit 8bbcc62
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion scene/gui/rich_text_label.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -437,7 +437,6 @@ int RichTextLabel::_process_line(ItemFrame *p_frame, const Vector2 &p_ofs, int &
was_separatable = separatable;
just_breaked_in_middle = false;

w += cw;
fw += cw;

end++;
Expand Down Expand Up @@ -579,6 +578,7 @@ int RichTextLabel::_process_line(ItemFrame *p_frame, const Vector2 &p_ofs, int &

if (visible) {
line_is_blank = false;
w += font->get_char_size(c[i], c[i + 1]).x;
}

if (c[i] == '\t') {
Expand Down

0 comments on commit 8bbcc62

Please sign in to comment.