Fix math macro plain text output

Previously it was not thread safe, and the translation could be wrong.
This commit is contained in:
Georg Baum 2015-03-15 17:47:38 +01:00
parent 3cd15806bd
commit 3d492529bf

View 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();