commit f5340fd6d94578a66b9eccdca0fcce35c1e1b12c
Author: Jean-Marc Lasgouttes <[email protected]>
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)
 {}
 
 
-- 
lyx-cvs mailing list
[email protected]
http://lists.lyx.org/mailman/listinfo/lyx-cvs

Reply via email to