avoid crash on some cases of richtextlabel fill, but odd behavior persists, #1803

This commit is contained in:
Juan Linietsky 2015-05-05 00:37:06 -03:00
parent 9b03ea903e
commit 36932a0065

View file

@ -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];
}
}