Commit 8be8316d authored by C. Boemann's avatar C. Boemann

Try and avoid a reported crash

BUG: 325547
parent 111e9c3e
......@@ -92,7 +92,7 @@ QString BgSpellCheck::fetchMoreText()
m_nextPosition = m_endPosition; // ends run
return QString();
}
if (block.length() == 1) { // only linefeed
if (block.length() <= 1) { // only linefeed or empty block
block = block.next();
m_currentPosition++;
continue;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment