diff options
author | RĂ©mi Verschelde <remi@verschelde.fr> | 2021-09-23 19:44:19 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-09-23 19:44:19 +0200 |
commit | 01f692c173b9926ae764a4a4c9a54c266a21272b (patch) | |
tree | 96323b3b6cd43dbbec3a74a9c09762c911e9dc32 /scene/gui/rich_text_label.cpp | |
parent | 2ec1152b0fda21f2050b30e49630659697a5e68b (diff) | |
parent | cc51b045da4bf40722d347c6306b2764a1c9d813 (diff) |
Merge pull request #52790 from AnilBK/dont-construct
Diffstat (limited to 'scene/gui/rich_text_label.cpp')
-rw-r--r-- | scene/gui/rich_text_label.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/scene/gui/rich_text_label.cpp b/scene/gui/rich_text_label.cpp index eb88570663..3eaae5181d 100644 --- a/scene/gui/rich_text_label.cpp +++ b/scene/gui/rich_text_label.cpp @@ -333,7 +333,7 @@ void RichTextLabel::_resize_line(ItemFrame *p_frame, int p_line, const Ref<Font> } else { frame->lines.write[i].offset.y = 0; } - frame->lines.write[i].offset += Vector2(offset.x, offset.y); + frame->lines.write[i].offset += offset; float h = frame->lines[i].text_buf->get_size().y; if (frame->min_size_over.y > 0) { @@ -578,7 +578,7 @@ void RichTextLabel::_shape_line(ItemFrame *p_frame, int p_line, const Ref<Font> } else { frame->lines.write[i].offset.y = 0; } - frame->lines.write[i].offset += Vector2(offset.x, offset.y); + frame->lines.write[i].offset += offset; float h = frame->lines[i].text_buf->get_size().y; if (frame->min_size_over.y > 0) { |