Fix RichTextLabel center alignment bug

Fixes #40207.
This commit is contained in:
Umang Kalra 2020-07-31 00:36:46 +05:30
parent f2d6a4bf84
commit cec21ab82c
1 changed files with 1 additions and 1 deletions

View File

@ -188,7 +188,7 @@ int RichTextLabel::_process_line(ItemFrame *p_frame, const Vector2 &p_ofs, int &
wofs += line_ofs;
}
int begin = wofs;
int begin = margin;
Ref<Font> cfont = _find_font(it);
if (cfont.is_null()) {