]> git.lyx.org Git - lyx.git/blobdiff - src/mathed/InsetMathUnderset.cpp
Small improvement for bug #7509 as suggested by JMarc
[lyx.git] / src / mathed / InsetMathUnderset.cpp
index 0da62f915535cb8a1ed5736b8de67b0a9aeaf994..e3a5f515ad9b76ddddf0b0b788627a09bc01cc5c 100644 (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) << '}';
 }