commit 49ed5b4626d0aa4c77829c7a2bb068f9b18d81e1
Author: Jean-Marc Lasgouttes <[email protected]>
Date: Fri Nov 15 20:43:00 2019 +0100
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 files changed, 6 insertions(+), 0 deletions(-)
diff --git a/src/mathed/InsetMathMacro.cpp b/src/mathed/InsetMathMacro.cpp
index 6e8ea5c..6ecc0c1 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_; }
--
lyx-cvs mailing list
[email protected]
http://lists.lyx.org/mailman/listinfo/lyx-cvs