The computation of the index of the main text entry of a row did not take into
account the fact that the entry could be optimised away.

(cherry picked from commit 947c34364c)
This commit is contained in:
Guillaume Munch 2016-06-14 00:17:38 +01:00
parent 380475f4db
commit 41f7f1d237

View File

@ -35,8 +35,11 @@ bool TexRow::RowEntryList::addEntry(RowEntry const & entry)
if (!entry.is_math) {
if (text_entry_ < size())
return false;
else
else {
text_entry_ = size();
push_back(entry);
return true;
}
}
forceAddEntry(entry);
return true;