Fixed infinite loop if left indent is greater than available width
This commit is contained in:
parent
e8914786d1
commit
d2789e5662
1 changed files with 1 additions and 1 deletions
|
@ -174,7 +174,7 @@ ZLTextLineInfoPtr ZLTextArea::processTextLine(Style &style, const ZLTextWordCurs
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (newInfo.Width > maxWidth) {
|
if (newInfo.Width > maxWidth && info.Start != info.End) {
|
||||||
if (!info.End.equalElementIndex(start)) {
|
if (!info.End.equalElementIndex(start)) {
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue