Fix math macro bug, caused by the evil string::operator+=(int)

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@212 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
Jean-Marc Lasgouttes 1999-10-19 16:11:58 +00:00
parent 8abfae28a6
commit ba452ec219
2 changed files with 11 additions and 2 deletions

View File

@ -1,5 +1,14 @@
1999-10-19 Jean-Marc Lasgouttes <Jean-Marc.Lasgouttes@inria.fr>
* src/mathed/math_macro.C (MathMacroArgument::Write,
MathMacroTemplate::WriteDef): add tostr() around macro arg numbers
when writing them out.
* src/LString.C: remove, since it is not used anymore.
* src/support/lyxstring.C: condition the content to
USE_INCLUDED_STRING macro.
* src/mathed/math_symbols.C, src/support/lstrings.C,
src/support/lyxstring.C: add `using' directive to specify what
we need in <algorithm>. I do not think that we need to

View File

@ -256,7 +256,7 @@ void MathMacroArgument::Write(string &file)
MathParInset::Write(file);
} else {
file += '#';
file += number;
file += tostr(number);
file += ' ';
}
}
@ -388,7 +388,7 @@ void MathMacroTemplate::WriteDef(string &file)
if (nargs > 0 ) {
file += '[';
file += nargs;
file += tostr(nargs);
file += ']';
}