mirror of
https://github.com/godotengine/godot.git
synced 2025-04-07 00:44:24 +08:00
avoid crash on some cases of richtextlabel fill, but odd behavior persists, #1803
This commit is contained in:
parent
9b03ea903e
commit
36932a0065
@ -268,7 +268,9 @@ if (m_height > line_height) {\
|
||||
}
|
||||
|
||||
if (found_space) {
|
||||
fw+=l.offset_caches[line]/l.space_caches[line];
|
||||
int ln = MIN(l.offset_caches.size()-1,line);
|
||||
|
||||
fw+=l.offset_caches[ln]/l.space_caches[ln];
|
||||
}
|
||||
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user