Fix RichTextLabel center alignment bug
Fixes #40207.
(cherry picked from commit cec21ab82c
)
This commit is contained in:
parent
b62872d5bc
commit
330afdd6cb
|
@ -188,7 +188,7 @@ int RichTextLabel::_process_line(ItemFrame *p_frame, const Vector2 &p_ofs, int &
|
|||
if (p_mode != PROCESS_CACHE && align != ALIGN_FILL)
|
||||
wofs += line_ofs;
|
||||
|
||||
int begin = wofs;
|
||||
int begin = margin;
|
||||
|
||||
Ref<Font> cfont = _find_font(it);
|
||||
if (cfont.is_null())
|
||||
|
|
Loading…
Reference in New Issue