Skip to content

Commit

Permalink
Revert "Fixes the get_visible_line_count() of rich text label"
Browse files Browse the repository at this point in the history
This reverts commit dc7e9d4.
  • Loading branch information
akien-mga committed Aug 17, 2020
1 parent c1a5e9f commit a6ef6b1
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions scene/gui/rich_text_label.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1021,8 +1021,8 @@ void RichTextLabel::_notification(int p_what) {

visible_line_count = 0;
while (y < size.height && from_line < main->lines.size()) {
visible_line_count++;
_process_line(main, text_rect.get_position(), y, text_rect.get_size().width - scroll_w, from_line, PROCESS_DRAW, base_font, base_color, font_color_shadow, use_outline, shadow_ofs, Point2i(), NULL, NULL, NULL, total_chars);

visible_line_count += _process_line(main, text_rect.get_position(), y, text_rect.get_size().width - scroll_w, from_line, PROCESS_DRAW, base_font, base_color, font_color_shadow, use_outline, shadow_ofs, Point2i(), NULL, NULL, NULL, total_chars);
total_chars += main->lines[from_line].char_count;

from_line++;
Expand Down

0 comments on commit a6ef6b1

Please sign in to comment.