From 77b0452a30f0b8968d7a0bc660bb0855d043e3fa Mon Sep 17 00:00:00 2001 From: Enrico Forestieri Date: Tue, 4 Nov 2014 21:27:55 +0100 Subject: [PATCH] Fix bug #7970: space disappears from equation when reopening LyX file. --- src/mathed/MathParser.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/mathed/MathParser.cpp b/src/mathed/MathParser.cpp index 2933c09d71..21621a3e25 100644 --- a/src/mathed/MathParser.cpp +++ b/src/mathed/MathParser.cpp @@ -2084,7 +2084,8 @@ bool Parser::parse1(InsetMathGrid & grid, unsigned flags, //} for (InsetMath::idx_type i = start; i < at->nargs(); ++i) { parse(at.nucleus()->cell(i), FLAG_ITEM, m); - skipSpaces(); + if (mode == InsetMath::MATH_MODE) + skipSpaces(); } cell->push_back(at); } -- 2.39.2