Browse Source

Merge pull request #40892 from theoway/center_align_bug

Fix RichTextLabel center alignment bug
Rémi Verschelde 5 years ago
parent
commit
408651ddc0
1 changed files with 1 additions and 1 deletions
  1. 1 1
      scene/gui/rich_text_label.cpp

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