commit 41f7f1d237c5f0ffa05c9ef52e21bab671ae57dd
Author: Guillaume Munch <[email protected]>
Date: Tue Jun 14 00:17:38 2016 +0100
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 947c34364c7f6a5c12ddfa7286ff504c62a1038a)
diff --git a/src/TexRow.cpp b/src/TexRow.cpp
index 8586a81..400daf3 100644
--- a/src/TexRow.cpp
+++ b/src/TexRow.cpp
@@ -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;