mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-11-09 18:31:04 +00:00
Some math font changing commands only work in math mode, so let's
assure to switch to math mode if needed. This helps avoiding latex errors (see http://thread.gmane.org/gmane.editors.lyx.general/69580) git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@38579 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
parent
3efc6385d7
commit
2c9c4ee672
@ -371,6 +371,7 @@ MathData InsetMathNest::glue() const
|
||||
|
||||
void InsetMathNest::write(WriteStream & os) const
|
||||
{
|
||||
MathEnsurer ensurer(os, currentMode() == MATH_MODE);
|
||||
ModeSpecifier specifier(os, currentMode(), lockedMode());
|
||||
docstring const latex_name = name();
|
||||
os << '\\' << latex_name;
|
||||
|
Loading…
Reference in New Issue
Block a user