Merge pull request #51974 from anazr9/godot-3.x-fixes
Fixed Crash with RichTextLabel [fill] tag #51968
This commit is contained in:
commit
c62399557a
@ -447,7 +447,7 @@ int RichTextLabel::_process_line(ItemFrame *p_frame, const Vector2 &p_ofs, int &
|
|||||||
fh = line_ascent + line_descent;
|
fh = line_ascent + line_descent;
|
||||||
|
|
||||||
if (end && c[end - 1] == ' ') {
|
if (end && c[end - 1] == ' ') {
|
||||||
if (align == ALIGN_FILL) {
|
if (align == ALIGN_FILL && p_mode != PROCESS_CACHE) {
|
||||||
int ln = MIN(l.offset_caches.size() - 1, line);
|
int ln = MIN(l.offset_caches.size() - 1, line);
|
||||||
if (l.space_caches[ln]) {
|
if (l.space_caches[ln]) {
|
||||||
align_ofs = spaces * l.offset_caches[ln] / l.space_caches[ln];
|
align_ofs = spaces * l.offset_caches[ln] / l.space_caches[ln];
|
||||||
|
Loading…
Reference in New Issue
Block a user