X-Git-Url: https://git.lyx.org/gitweb/?a=blobdiff_plain;f=src%2FTexRow.cpp;h=21be0b8e30f69f1eed42ea4273cad5d514746918;hb=8cf138e173937f35f45bf245fd33184a6b1b6abb;hp=8586a81c41d8fbaac884176d327a02cb8a951d77;hpb=dd6b5cc67cc641a49ad188e54018c6a1ffdbc017;p=lyx.git 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;