(MathMacroArgument): fix creation of #digit string.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@15914
a592a061-630c-0410-9148-
cb99ea01b6c8
#include "InsetMathMacro.h"
#include "MathStream.h"
#include "MathSupport.h"
#include "InsetMathMacro.h"
#include "MathStream.h"
#include "MathSupport.h"
+#include "support/convert.h"
lyxerr << "MathMacroArgument::MathMacroArgument: wrong Argument id: "
<< n << endl;
}
lyxerr << "MathMacroArgument::MathMacroArgument: wrong Argument id: "
<< n << endl;
}
- str_.resize(3);
- str_[0] = '#';
- str_[1] = static_cast<char_type>('0' + n);
- str_[2] = '\0';
+ str_ = '#' + convert<docstring>(n);