commit 77b0452a30f0b8968d7a0bc660bb0855d043e3fa
Author: Enrico Forestieri <for...@lyx.org>
Date:   Tue Nov 4 21:27:55 2014 +0100

    Fix bug #7970: space disappears from equation when reopening LyX file.

diff --git a/src/mathed/MathParser.cpp b/src/mathed/MathParser.cpp
index 2933c09..21621a3 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);
                                }

Reply via email to