Make the fix for bug 8999 actually work

This backports 1cdbb94f which was spotted by cppcheck.
This commit is contained in:
Georg Baum 2014-11-14 21:28:40 +01:00
parent acc771b212
commit 8b31f838c5

View File

@ -329,10 +329,11 @@ private:
void MathMacro::updateRepresentation(Cursor * cur, MacroContext const & mc,
UpdateType utype)
{
// block recursive calls (bug 8999)
if (isUpdating_)
return;
UpdateLocker(*this);
UpdateLocker locker(*this);
// known macro?
if (macro_ == 0)