From: Jean-Marc Lasgouttes Date: Fri, 2 Oct 2020 10:06:32 +0000 (+0200) Subject: Fixup f96b99dc: thinko X-Git-Tag: lyx-2.4.0dev-acb2ca7b~141 X-Git-Url: https://git.lyx.org/gitweb/?a=commitdiff_plain;h=a97b384b07d81ee33815fd4f0e8a19c8ab2f66ed;p=lyx.git 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. --- 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; }