Fix RichTextLabel center alignment bug

Fixes #40207.

(cherry picked from commit cec21ab82c)
This commit is contained in:
Umang Kalra 2020-07-31 00:36:46 +05:30 committed by Rémi Verschelde
parent b62872d5bc
commit 330afdd6cb
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 &
if (p_mode != PROCESS_CACHE && align != ALIGN_FILL) if (p_mode != PROCESS_CACHE && align != ALIGN_FILL)
wofs += line_ofs; wofs += line_ofs;
int begin = wofs; int begin = margin;
Ref<Font> cfont = _find_font(it); Ref<Font> cfont = _find_font(it);
if (cfont.is_null()) if (cfont.is_null())