Fixed infinite loop if left indent is greater than available width

This commit is contained in:
Slava Monich 2015-07-03 01:43:35 +03:00
parent e8914786d1
commit d2789e5662

View file

@ -174,7 +174,7 @@ ZLTextLineInfoPtr ZLTextArea::processTextLine(Style &style, const ZLTextWordCurs
break;
}
if (newInfo.Width > maxWidth) {
if (newInfo.Width > maxWidth && info.Start != info.End) {
if (!info.End.equalElementIndex(start)) {
break;
}