]> git.lyx.org Git - lyx.git/commitdiff
Specify that we are in math mode. This avoids unnecessary \ensuremath
authorEnrico Forestieri <forenr@lyx.org>
Tue, 2 Sep 2008 20:04:05 +0000 (20:04 +0000)
committerEnrico Forestieri <forenr@lyx.org>
Tue, 2 Sep 2008 20:04:05 +0000 (20:04 +0000)
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

index dffbee7e6786fb26e830d9d0c389945642ec0448..99d59b00b08a291bc29c97358345562387feaf75 100644 (file)
@@ -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);