Fix right alignment in RichTextLabel
(cherry picked from commit 820f7c9d15
)
This commit is contained in:
parent
2e1646e484
commit
97404dc612
@ -222,7 +222,7 @@ int RichTextLabel::_process_line(ItemFrame *p_frame, const Vector2 &p_ofs, int &
|
|||||||
if (align != ALIGN_FILL) \
|
if (align != ALIGN_FILL) \
|
||||||
wofs += line_ofs; \
|
wofs += line_ofs; \
|
||||||
} else { \
|
} else { \
|
||||||
int used = wofs - margin; \
|
float used = wofs - margin; \
|
||||||
switch (align) { \
|
switch (align) { \
|
||||||
case ALIGN_LEFT: \
|
case ALIGN_LEFT: \
|
||||||
l.offset_caches.push_back(0); \
|
l.offset_caches.push_back(0); \
|
||||||
|
Loading…
Reference in New Issue
Block a user