From 947c34364c7f6a5c12ddfa7286ff504c62a1038a Mon Sep 17 00:00:00 2001 From: Guillaume Munch Date: Tue, 14 Jun 2016 00:17:38 +0100 Subject: [PATCH] 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. --- src/TexRow.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/TexRow.cpp b/src/TexRow.cpp index 8586a81c41..21be0b8e30 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(RowEntry(entry)); + return true; + } } forceAddEntry(entry); return true; -- 2.39.5