From 1c362c80b22012d66472da713ffa0cf3d71815e7 Mon Sep 17 00:00:00 2001 From: Enrico Forestieri Date: Tue, 2 Sep 2008 20:04:05 +0000 Subject: [PATCH] Specify that we are in math mode. This avoids unnecessary \ensuremath commands when using math in text mode (such as in $\text{$\phi$}$, where \phi would be enclosed in \ensuremath{} as it is inside \text{}). git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@26288 a592a061-630c-0410-9148-cb99ea01b6c8 --- src/mathed/InsetMathHull.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/src/mathed/InsetMathHull.cpp b/src/mathed/InsetMathHull.cpp index dffbee7e67..99d59b00b0 100644 --- a/src/mathed/InsetMathHull.cpp +++ b/src/mathed/InsetMathHull.cpp @@ -1019,6 +1019,7 @@ docstring InsetMathHull::eolString(row_type row, bool emptyline, bool fragile) c void InsetMathHull::write(WriteStream & os) const { + ModeSpecifier specifier(os, MATH_MODE); header_write(os); InsetMathGrid::write(os); footer_write(os); -- 2.39.2