Merge pull request #41971 from nekomatata/richtextlabel-align-pointer

Fix RichTextLabel alignment for clickable regions
This commit is contained in:
Rémi Verschelde 2020-09-11 09:39:48 +02:00 committed by GitHub
commit 9d9ee2d4c2
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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) && (align != ALIGN_FILL)) { \
if (align != ALIGN_FILL) { \
if (line < l.offset_caches.size()) { \
wofs = l.offset_caches[line]; \
} \