]> git.lyx.org Git - lyx.git/blobdiff - src/mathed/InsetMathDecoration.cpp
Revert "DocBook: make openParTag/closeTag use paragraphs instead of layouts."
[lyx.git] / src / mathed / InsetMathDecoration.cpp
index 17a0a953c3da06c79ce7fea4d540f357c9f519b4..0349c69ee5f158a04997a38b5cb10cbccf272a3f 100644 (file)
@@ -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);
 }