From: Guillaume Munch Date: Mon, 13 Jun 2016 23:17:38 +0000 (+0100) Subject: Fix bug #10195 X-Git-Tag: 2.2.1~104 X-Git-Url: https://git.lyx.org/gitweb/?a=commitdiff_plain;h=41f7f1d237c5f0ffa05c9ef52e21bab671ae57dd;p=features.git 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 8586a81c41..400daf3a70 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;