git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@37288 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
Georg Baum 2011-01-21 19:18:27 +00:00
parent c0778a3d0e
commit 3d4f76cf2d
2 changed files with 4 additions and 0 deletions

View File

@ -74,6 +74,8 @@ bool InsetMathOverset::idxLast(Cursor & cur) const
void InsetMathOverset::write(WriteStream & os) const
{
MathEnsurer ensurer(os);
if (os.fragile())
os << "\\protect";
os << "\\overset{" << cell(0) << "}{" << cell(1) << '}';
}

View File

@ -85,6 +85,8 @@ bool InsetMathUnderset::idxUpDown(Cursor & cur, bool up) const
void InsetMathUnderset::write(WriteStream & os) const
{
MathEnsurer ensurer(os);
if (os.fragile())
os << "\\protect";
os << "\\underset{" << cell(0) << "}{" << cell(1) << '}';
}