Fix right alignment in RichTextLabel

(cherry picked from commit 820f7c9d15)
This commit is contained in:
kobewi 2021-11-29 14:01:28 +01:00 committed by Rémi Verschelde
parent 2e1646e484
commit 97404dc612
No known key found for this signature in database
GPG Key ID: C3336907360768E1

View File

@ -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); \