Skip to content

Commit

Permalink
Fix RichTextLabel fill alignment regression
Browse files Browse the repository at this point in the history
Fixes godotengine#40068 (regression from godotengine#39164) by not applying the line offset
change in the case of fill alignment mode.
  • Loading branch information
pouleyKetchoupp committed Jul 3, 2020
1 parent 0a8dbe7 commit 44f8899
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion scene/gui/rich_text_label.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -256,7 +256,7 @@ int RichTextLabel::_process_line(ItemFrame *p_frame, const Vector2 &p_ofs, int &
lh = line < l.height_caches.size() ? l.height_caches[line] : 1; \
line_ascent = line < l.ascent_caches.size() ? l.ascent_caches[line] : 1; \
line_descent = line < l.descent_caches.size() ? l.descent_caches[line] : 1; \
if (p_mode == PROCESS_DRAW) { \
if ((p_mode == PROCESS_DRAW) && (align != ALIGN_FILL)) { \
if (line < l.offset_caches.size()) { \
wofs = l.offset_caches[line]; \
} \
Expand Down

0 comments on commit 44f8899

Please sign in to comment.