From 8b31f838c5ceab2cc9aae03e31cdcc673c2a4381 Mon Sep 17 00:00:00 2001 From: Georg Baum Date: Fri, 14 Nov 2014 21:28:40 +0100 Subject: [PATCH] Make the fix for bug 8999 actually work This backports 1cdbb94f which was spotted by cppcheck. --- src/mathed/MathMacro.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/mathed/MathMacro.cpp b/src/mathed/MathMacro.cpp index f39112c11c..4483412698 100644 --- a/src/mathed/MathMacro.cpp +++ b/src/mathed/MathMacro.cpp @@ -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) -- 2.39.5