[LyX/master] Fix missing initialization

Jean-Marc Lasgouttes lasgouttes at lyx.org
Fri Mar 5 12:02:04 UTC 2021


commit f5340fd6d94578a66b9eccdca0fcce35c1e1b12c
Author: Jean-Marc Lasgouttes <lasgouttes at lyx.org>
Date:   Fri Mar 5 13:06:10 2021 +0100

    Fix missing initialization
    
    Spotted by Coverity.
---
 src/mathed/InsetMathColor.cpp |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)

diff --git a/src/mathed/InsetMathColor.cpp b/src/mathed/InsetMathColor.cpp
index be2c0f8..e3be8ff 100644
--- a/src/mathed/InsetMathColor.cpp
+++ b/src/mathed/InsetMathColor.cpp
@@ -30,7 +30,8 @@ namespace lyx {
 
 InsetMathColor::InsetMathColor(Buffer * buf, bool oldstyle, ColorCode color)
 	: InsetMathNest(buf, 1), oldstyle_(oldstyle),
-	  color_(from_utf8(lcolor.getLaTeXName(color)))
+	  color_(from_utf8(lcolor.getLaTeXName(color))),
+	  current_mode_(UNDECIDED_MODE)
 {}
 
 


More information about the lyx-cvs mailing list