2
0
Эх сурвалжийг харах

Fix RichTextLabel center alignment bug

Fixes #40207.
Umang Kalra 5 жил өмнө
parent
commit
cec21ab82c

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