diff options
author | Umang Kalra <umangkalra10@gmail.com> | 2020-07-31 00:36:46 +0530 |
---|---|---|
committer | Umang Kalra <umangkalra10@gmail.com> | 2020-08-11 12:11:38 +0200 |
commit | cec21ab82cff23b2fa97a7c5e25961a38341c8cf (patch) | |
tree | 53acd24e06ef6826aa58900b406a4ab496e86175 /scene/gui | |
parent | f2d6a4bf84c2a5c11a5bebd7ebc09f0c7fdfd9f0 (diff) |
Fix RichTextLabel center alignment bug
Fixes #40207.
Diffstat (limited to 'scene/gui')
-rw-r--r-- | scene/gui/rich_text_label.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/scene/gui/rich_text_label.cpp b/scene/gui/rich_text_label.cpp index 41cd67dbf1..29337e20f3 100644 --- a/scene/gui/rich_text_label.cpp +++ b/scene/gui/rich_text_label.cpp @@ -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()) { |