Fix regression through fa98637aca

(cherry picked from commit 89f607604e)
This commit is contained in:
poke1024 2018-03-01 18:03:53 +01:00 committed by Hein-Pieter van Braam
parent 3e931e258c
commit c800653c6f
1 changed files with 5 additions and 0 deletions

View File

@ -319,6 +319,11 @@ int RichTextLabel::_process_line(ItemFrame *p_frame, const Vector2 &p_ofs, int &
ENSURE_WIDTH(w);
if (p_mode == PROCESS_CACHE) {
line_ascent = ascent;
line_descent = descent;
}
if (end && c[end - 1] == ' ') {
if (p_mode == PROCESS_CACHE) {
spaces_size += font->get_char_size(' ').width;