diff options
| author | Hugo Locurcio <hugo.locurcio@hugo.pro> | 2021-08-20 23:24:42 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2021-08-20 23:24:42 +0200 |
| commit | 2daef0400a95bb467dacff845052a27e464e4dec (patch) | |
| tree | 2dadd6e226858be1f465eabff196b50f75317a8b /scene/gui | |
| parent | 78bf06ea415873d336f7869edb632968b1be6bed (diff) | |
| parent | 39b90802d06d102f9494404d181ed6eac4590f17 (diff) | |
| download | redot-engine-2daef0400a95bb467dacff845052a27e464e4dec.tar.gz | |
Merge pull request #51866 from requizm/fix/49455
Fix `line_separation` working incorrectly in `RichTextLabel`
Diffstat (limited to 'scene/gui')
| -rw-r--r-- | scene/gui/rich_text_label.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/scene/gui/rich_text_label.cpp b/scene/gui/rich_text_label.cpp index cf2a1481a1..32fa7cc045 100644 --- a/scene/gui/rich_text_label.cpp +++ b/scene/gui/rich_text_label.cpp @@ -1435,7 +1435,7 @@ void RichTextLabel::_notification(int p_what) { while (ofs.y < size.height && from_line < main->lines.size()) { visible_paragraph_count++; visible_line_count += _draw_line(main, from_line, ofs, text_rect.size.x, base_color, outline_size, outline_color, font_shadow_color, use_outline, shadow_ofs); - ofs.y += main->lines[from_line].text_buf->get_size().y; + ofs.y += main->lines[from_line].text_buf->get_size().y + get_theme_constant(SNAME("line_separation")); from_line++; } } break; |
