Add a setBuffer method to InsetArgumentProxy

This is needed to set the buffer of default values of optional arguments.

Fixes bug #11695.
This commit is contained in:
Jean-Marc Lasgouttes 2019-11-15 20:43:00 +01:00
parent 400706ad05
commit 49ed5b4626

View File

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