]> git.lyx.org Git - lyx.git/commitdiff
Fixup f96b99dc: thinko
authorJean-Marc Lasgouttes <lasgouttes@lyx.org>
Fri, 2 Oct 2020 10:06:32 +0000 (12:06 +0200)
committerJean-Marc Lasgouttes <lasgouttes@lyx.org>
Fri, 2 Oct 2020 10:06:32 +0000 (12:06 +0200)
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

index 90f41eb242c89dd9391e4b0cf97e169c103302e1..a128520067315c65aefb417c935f9014ab346db5 100644 (file)
@@ -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;
 }