mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-11-22 01:59:02 +00:00
Fix bug #10195
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.
This commit is contained in:
parent
b7abd752fa
commit
947c34364c
@ -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(RowEntry(entry));
|
||||
return true;
|
||||
}
|
||||
}
|
||||
forceAddEntry(entry);
|
||||
return true;
|
||||
|
Loading…
Reference in New Issue
Block a user