]> git.lyx.org Git - features.git/commitdiff
Fix bug #10939.
authorRichard Heck <rgheck@lyx.org>
Sat, 24 Feb 2018 05:49:31 +0000 (00:49 -0500)
committerRichard Heck <rgheck@lyx.org>
Sat, 24 Feb 2018 05:49:31 +0000 (00:49 -0500)
src/tex2lyx/text.cpp

index 00affe0a311117a72def2da9d97aeb2af8e3f361..c18b5e83532a657983a63bb4828a8f907c863650 100644 (file)
@@ -4678,7 +4678,7 @@ void parse_text(Parser & p, ostream & os, unsigned flags, bool outer,
                        bool known_hspace = false;
                        bool known_vspace = false;
                        bool known_unit = false;
-                       double value;
+                       double value = 0.0;
                        if (valid) {
                                istringstream iss(valstring);
                                iss >> value;