From a97b384b07d81ee33815fd4f0e8a19c8ab2f66ed Mon Sep 17 00:00:00 2001 From: Jean-Marc Lasgouttes Date: Fri, 2 Oct 2020 12:06:32 +0200 Subject: [PATCH] Fixup f96b99dc: thinko Setting the res value and returning from the function at the same time does not make sense. After reflection, it is the "return" that shall go. No idea what effect it had. --- src/mathed/MathData.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/mathed/MathData.cpp b/src/mathed/MathData.cpp index 90f41eb242..a128520067 100644 --- a/src/mathed/MathData.cpp +++ b/src/mathed/MathData.cpp @@ -972,7 +972,7 @@ MathClass MathData::lastMathClass() const for (MathAtom const & at : *this) { MathClass mc = at->mathClass(); if (mc != MC_UNKNOWN) - return res = mc; + res = mc; } return res; } -- 2.39.5