From 820f7c9d158a04c0bccfd0b79862bbec72b5a0b7 Mon Sep 17 00:00:00 2001 From: kobewi Date: Mon, 29 Nov 2021 14:01:28 +0100 Subject: [PATCH] Fix right alignment in RichTextLabel --- scene/gui/rich_text_label.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scene/gui/rich_text_label.cpp b/scene/gui/rich_text_label.cpp index 0d59700223a..7eb9c4a6de8 100644 --- a/scene/gui/rich_text_label.cpp +++ b/scene/gui/rich_text_label.cpp @@ -222,7 +222,7 @@ int RichTextLabel::_process_line(ItemFrame *p_frame, const Vector2 &p_ofs, int & if (align != ALIGN_FILL) \ wofs += line_ofs; \ } else { \ - int used = wofs - margin; \ + float used = wofs - margin; \ switch (align) { \ case ALIGN_LEFT: \ l.offset_caches.push_back(0); \