mirror of
https://git.lyx.org/repos/lyx.git
synced 2025-01-11 03:03:06 +00:00
* 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:
parent
b912982bdc
commit
0f4aaa8ed4
@ -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);
|
||||
}
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user