You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2025-11-06 12:20:30 +00:00
avoid crash on some cases of richtextlabel fill, but odd behavior persists, #1803
This commit is contained in:
@@ -268,7 +268,9 @@ if (m_height > line_height) {\
|
|||||||
}
|
}
|
||||||
|
|
||||||
if (found_space) {
|
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];
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user