]> git.lyx.org Git - features.git/commitdiff
Fix display of predefined macros (bug #9059)
authorGeorg Baum <baum@lyx.org>
Fri, 28 Mar 2014 22:16:36 +0000 (23:16 +0100)
committerGeorg Baum <baum@lyx.org>
Fri, 28 Mar 2014 22:16:36 +0000 (23:16 +0100)
This was a regression of e86cdc40: A newly introduced member variable was
not initialized in the constructor, which made it quite random whether symbols
like \coloneqq where displayed correctly or as an empty edit box.

src/mathed/MathMacro.cpp

index e536af5372ea79612a75897911578d65b4348e8c..f39112c11cba21abd885010e3c4257bf199f5d38 100644 (file)
@@ -126,7 +126,8 @@ private:
 MathMacro::MathMacro(Buffer * buf, docstring const & name)
        : InsetMathNest(buf, 0), name_(name), displayMode_(DISPLAY_INIT),
                expanded_(buf), attachedArgsNum_(0), optionals_(0), nextFoldMode_(true),
-               macroBackup_(buf), macro_(0), needsUpdate_(false), appetite_(9)
+               macroBackup_(buf), macro_(0), needsUpdate_(false),
+               isUpdating_(false), appetite_(9)
 {}