avoid crash on some cases of richtextlabel fill, but odd behavior persists, #1803
This commit is contained in:
parent
9b03ea903e
commit
36932a0065
1 changed files with 3 additions and 1 deletions
|
|
@ -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];
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue