mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-12-22 13:18:28 +00:00
Fix bug #10951.
The Buffer member for the remembered definition_ was not being set.
(cherry picked from commit f130f7713f
)
This commit is contained in:
parent
cf97ec4a21
commit
b92ddb0362
@ -1318,4 +1318,10 @@ void InsetMathMacro::completionPosAndDim(Cursor const & cur, int & x, int & y,
|
||||
}
|
||||
|
||||
|
||||
void InsetMathMacro::setBuffer(Buffer & buffer)
|
||||
{
|
||||
d->definition_.setBuffer(buffer);
|
||||
InsetMathNest::setBuffer(buffer);
|
||||
}
|
||||
|
||||
} // namespace lyx
|
||||
|
@ -149,6 +149,8 @@ public:
|
||||
/// This is not used for display; however whether it is mathrel determines
|
||||
/// how to split equations intelligently.
|
||||
MathClass mathClass() const; //override
|
||||
/// Override so as to set Buffer for defnition_ member, too.
|
||||
void setBuffer(Buffer &);
|
||||
|
||||
protected:
|
||||
friend class MathData;
|
||||
|
@ -178,6 +178,8 @@ public:
|
||||
void updateMacros(Cursor * cur, MacroContext const & mc, UpdateType, int nesting);
|
||||
///
|
||||
void updateBuffer(ParIterator const &, UpdateType);
|
||||
///
|
||||
void setBuffer(Buffer & b) { buffer_ = &b; }
|
||||
|
||||
protected:
|
||||
/// cached values for super/subscript placement
|
||||
|
Loading…
Reference in New Issue
Block a user