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.
(cherry picked from commit 947c34364c
)
This commit is contained in:
parent
380475f4db
commit
41f7f1d237
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user