From 49ed5b4626d0aa4c77829c7a2bb068f9b18d81e1 Mon Sep 17 00:00:00 2001 From: Jean-Marc Lasgouttes Date: Fri, 15 Nov 2019 20:43:00 +0100 Subject: [PATCH] Add a setBuffer method to InsetArgumentProxy This is needed to set the buffer of default values of optional arguments. Fixes bug #11695. --- src/mathed/InsetMathMacro.cpp | 6 ++++++ 1 file changed, 6 insertions(+) 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_; } -- 2.39.2