* src/mathed/MathMacroArgument.C

(MathMacroArgument): fix creation of #digit string.



git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@15914 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
Jean-Marc Lasgouttes 2006-11-14 08:15:38 +00:00
parent b912982bdc
commit 0f4aaa8ed4

View File

@ -15,6 +15,7 @@
#include "InsetMathMacro.h"
#include "MathStream.h"
#include "MathSupport.h"
#include "support/convert.h"
#include "debug.h"
@ -33,10 +34,7 @@ MathMacroArgument::MathMacroArgument(size_t n)
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);
}