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
This commit is contained in:
Enrico Forestieri 2008-09-02 20:04:05 +00:00
parent ad91dd139c
commit 1c362c80b2

View 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);