]> git.lyx.org Git - features.git/commitdiff
Fix math macro plain text output
authorGeorg Baum <baum@lyx.org>
Sun, 15 Mar 2015 16:47:38 +0000 (17:47 +0100)
committerGeorg Baum <baum@lyx.org>
Wed, 18 Mar 2015 20:33:09 +0000 (21:33 +0100)
Previously it was not thread safe, and the translation could be wrong.

src/mathed/MathMacroTemplate.cpp

index 82538e8d641542147ce0f2bc7bfbb538e13b37da..485a060244bf65cd61613f8560e96c41e1da3d7b 100644 (file)
@@ -1273,7 +1273,7 @@ docstring MathMacroTemplate::xhtml(XHTMLStream &, OutputParams const &) const
 int MathMacroTemplate::plaintext(odocstringstream & os,
                                 OutputParams const &, size_t) const
 {
-       static docstring const str = '[' + buffer().B_("math macro") + ']';
+       docstring const str = '[' + buffer().B_("math macro") + ']';
 
        os << str;
        return str.size();