From d2789e5662adc1e6099b72554f7270cd8eda1057 Mon Sep 17 00:00:00 2001 From: Slava Monich Date: Fri, 3 Jul 2015 01:43:35 +0300 Subject: [PATCH] Fixed infinite loop if left indent is greater than available width --- .../zlibrary/text/src/area/ZLTextArea_processTextLine.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/fbreader/fbreader/zlibrary/text/src/area/ZLTextArea_processTextLine.cpp b/fbreader/fbreader/zlibrary/text/src/area/ZLTextArea_processTextLine.cpp index b1651d1..5aa77d2 100644 --- a/fbreader/fbreader/zlibrary/text/src/area/ZLTextArea_processTextLine.cpp +++ b/fbreader/fbreader/zlibrary/text/src/area/ZLTextArea_processTextLine.cpp @@ -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; }