fix textsplit core dump caused by interaction of new 1.20 code with little-tested camelcase splitting section

This commit is contained in:
Jean-Francois Dockes 2014-07-28 22:12:35 +02:00
parent 970c079d8c
commit efaa1fb3a3

View File

@ -729,7 +729,10 @@ bool TextSplit::text_to_words(const string &in)
m_wordLen--;
if (!doemit(false, it.getBpos()))
return false;
m_wordStart--;
// m_wordstart could be 0 here if the span was reset
// for excessive length
if (m_wordStart)
m_wordStart--;
m_wordLen++;
}
goto NORMALCHAR;