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.
This commit is contained in:
parent
32efb91438
commit
f130f7713f
@ -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
|
} // namespace lyx
|
||||||
|
@ -149,6 +149,8 @@ public:
|
|||||||
/// This is not used for display; however whether it is mathrel determines
|
/// This is not used for display; however whether it is mathrel determines
|
||||||
/// how to split equations intelligently.
|
/// how to split equations intelligently.
|
||||||
MathClass mathClass() const; //override
|
MathClass mathClass() const; //override
|
||||||
|
/// Override so as to set Buffer for defnition_ member, too.
|
||||||
|
void setBuffer(Buffer &);
|
||||||
|
|
||||||
protected:
|
protected:
|
||||||
friend class MathData;
|
friend class MathData;
|
||||||
|
@ -176,6 +176,8 @@ public:
|
|||||||
void updateMacros(Cursor * cur, MacroContext const & mc, UpdateType, int nesting);
|
void updateMacros(Cursor * cur, MacroContext const & mc, UpdateType, int nesting);
|
||||||
///
|
///
|
||||||
void updateBuffer(ParIterator const &, UpdateType);
|
void updateBuffer(ParIterator const &, UpdateType);
|
||||||
|
///
|
||||||
|
void setBuffer(Buffer & b) { buffer_ = &b; }
|
||||||
|
|
||||||
protected:
|
protected:
|
||||||
/// cached values for super/subscript placement
|
/// cached values for super/subscript placement
|
||||||
|
Loading…
Reference in New Issue
Block a user