Fix critial bug in text itemizer.

Itemizations is invalid after changing text, therefore lists have to be cleared.
This commit is contained in:
Hermann Kraus 2013-04-01 21:47:48 +02:00
parent 74d72b9191
commit e4ad657991

View file

@ -129,7 +129,7 @@ void text_itemizer::itemize_direction(unsigned start, unsigned end)
void text_itemizer::itemize_script()
{
if (!script_runs_.empty()) return; //Already done
script_runs_.clear();
ScriptRun runs(text_.getBuffer(), text_.length());
while (runs.next())