X-Git-Url: https://git.lyx.org/gitweb/?a=blobdiff_plain;f=src%2Fmathed%2FInsetMathDecoration.cpp;h=0349c69ee5f158a04997a38b5cb10cbccf272a3f;hb=21c92c8a129b5f3ff56de33bf2941a25967cffbb;hp=17a0a953c3da06c79ce7fea4d540f357c9f519b4;hpb=718eede94bd57b51f6f60cda4c05a68da3dd0d66;p=lyx.git diff --git a/src/mathed/InsetMathDecoration.cpp b/src/mathed/InsetMathDecoration.cpp index 17a0a953c3..0349c69ee5 100644 --- a/src/mathed/InsetMathDecoration.cpp +++ b/src/mathed/InsetMathDecoration.cpp @@ -38,7 +38,7 @@ namespace lyx { InsetMathDecoration::InsetMathDecoration(Buffer * buf, latexkeys const * key) - : InsetMathNest(buf, 1), key_(key), dh_(0), dy_(0), dw_(0) + : InsetMathNest(buf, 1), key_(key) { // lyxerr << " creating deco " << key->name << endl; } @@ -64,12 +64,6 @@ MathClass InsetMathDecoration::mathClass() const } -bool InsetMathDecoration::isScriptable() const -{ - return mathClass() == MC_OP; -} - - bool InsetMathDecoration::protect() const { return @@ -151,6 +145,7 @@ void InsetMathDecoration::write(WriteStream & os) const os << '\\' << key_->name << '{'; ModeSpecifier specifier(os, currentMode()); os << cell(0) << '}'; + writeLimits(os); }