[LyX/master] Fixup f96b99dc: thinko

Jean-Marc Lasgouttes lasgouttes at lyx.org
Fri Oct 2 09:41:21 UTC 2020


commit a97b384b07d81ee33815fd4f0e8a19c8ab2f66ed
Author: Jean-Marc Lasgouttes <lasgouttes at lyx.org>
Date:   Fri Oct 2 12:06:32 2020 +0200

    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 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/src/mathed/MathData.cpp b/src/mathed/MathData.cpp
index 90f41eb..a128520 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;
 }


More information about the lyx-cvs mailing list