mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-12-14 09:32:20 +00:00
Make the fix for bug 8999 actually work
This backports 1cdbb94f
which was spotted by cppcheck.
This commit is contained in:
parent
acc771b212
commit
8b31f838c5
@ -329,10 +329,11 @@ private:
|
|||||||
void MathMacro::updateRepresentation(Cursor * cur, MacroContext const & mc,
|
void MathMacro::updateRepresentation(Cursor * cur, MacroContext const & mc,
|
||||||
UpdateType utype)
|
UpdateType utype)
|
||||||
{
|
{
|
||||||
|
// block recursive calls (bug 8999)
|
||||||
if (isUpdating_)
|
if (isUpdating_)
|
||||||
return;
|
return;
|
||||||
|
|
||||||
UpdateLocker(*this);
|
UpdateLocker locker(*this);
|
||||||
|
|
||||||
// known macro?
|
// known macro?
|
||||||
if (macro_ == 0)
|
if (macro_ == 0)
|
||||||
|
Loading…
Reference in New Issue
Block a user