mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-11-22 01:59:02 +00:00
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:
parent
8abfae28a6
commit
ba452ec219
@ -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
|
||||
|
@ -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 += ']';
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user