From: Jean-Marc Lasgouttes Date: Fri, 15 Nov 2019 19:43:00 +0000 (+0100) Subject: Add a setBuffer method to InsetArgumentProxy X-Git-Url: https://git.lyx.org/gitweb/?a=commitdiff_plain;h=b8fc66d9696e465a26cf22a1254a1d9b712ee6b7;p=features.git Add a setBuffer method to InsetArgumentProxy This is needed to set the buffer of default values of optional arguments. Fixes bug #11695. --- diff --git a/src/mathed/InsetMathMacro.cpp b/src/mathed/InsetMathMacro.cpp index 6e8ea5c30b..6ecc0c164d 100644 --- a/src/mathed/InsetMathMacro.cpp +++ b/src/mathed/InsetMathMacro.cpp @@ -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_; }