Merge pull request #40892 from theoway/center_align_bug

Fix RichTextLabel center alignment bug
This commit is contained in:
Rémi Verschelde 2020-08-11 12:58:23 +02:00 committed by GitHub
commit 408651ddc0
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

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()) {