summaryrefslogtreecommitdiff
path: root/scene/gui/rich_text_label.cpp
diff options
context:
space:
mode:
authorrequizm <mehmet41650@gmail.com>2021-08-19 02:57:51 +0300
committerrequizm <mehmet41650@gmail.com>2021-08-20 23:03:13 +0300
commit39b90802d06d102f9494404d181ed6eac4590f17 (patch)
treef9d76989c1c47c48c901175b5f1c4c977bd11d49 /scene/gui/rich_text_label.cpp
parent6cea7ebae4721e05ea7013c6159a751f7498ea85 (diff)
Fix line_separation constant working incorrectly 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 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;