Fix possible bug spotted by cppcheck

I am not sure what this locking is really about, but the new code seems to be the right thing to do.
This commit is contained in:
Jean-Marc 2014-07-05 19:12:09 +02:00
parent 8715bab65c
commit 1cdbb94ff5

View File

@ -332,7 +332,7 @@ void MathMacro::updateRepresentation(Cursor * cur, MacroContext const & mc,
if (isUpdating_)
return;
UpdateLocker(*this);
UpdateLocker locker(*this);
// known macro?
if (macro_ == 0)