]> git.lyx.org Git - features.git/commitdiff
Add a setBuffer method to InsetArgumentProxy
authorJean-Marc Lasgouttes <lasgouttes@lyx.org>
Fri, 15 Nov 2019 19:43:00 +0000 (20:43 +0100)
committerJean-Marc Lasgouttes <lasgouttes@lyx.org>
Fri, 15 Nov 2019 19:43:00 +0000 (20:43 +0100)
This is needed to set the buffer of default values of optional arguments.

Fixes bug #11695.

src/mathed/InsetMathMacro.cpp

index 6e8ea5c30b1343d20de60fd1cefbf80c359a40c7..6ecc0c164dd1d76ebe8175820e6b3bf990d8350a 100644 (file)
@@ -64,6 +64,12 @@ public:
                        asArray(def, def_);
        }
        ///
+       void setBuffer(Buffer & buffer)
+       {
+               Inset::setBuffer(buffer);
+               def_.setBuffer(buffer);
+       }
+       ///
        void setOwner(InsetMathMacro * mathMacro) { mathMacro_ = mathMacro; }
        ///
        InsetMathMacro const * owner() { return mathMacro_; }