mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-12-22 05:16:21 +00:00
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:
parent
8715bab65c
commit
1cdbb94ff5
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user