X-Git-Url: https://git.lyx.org/gitweb/?a=blobdiff_plain;f=src%2Fmathed%2Fmath_write.C;h=3adbdfd25b918c7c37ca2429564c936898d7b8ba;hb=d32a38cf858a398e10ad858367927f17a22aca21;hp=53eb4d87e164cb5801c23522e56666dc86a8613d;hpb=0eccdd1c3613e5170deb77b22174dd0afde833e9;p=lyx.git diff --git a/src/mathed/math_write.C b/src/mathed/math_write.C index 53eb4d87e1..3adbdfd25b 100644 --- a/src/mathed/math_write.C +++ b/src/mathed/math_write.C @@ -21,6 +21,7 @@ #include "math_iter.h" #include "math_parser.h" #include "support/lstrings.h" +#include "debug.h" extern char const *latex_mathenv[]; extern char *latex_mathspace[]; @@ -290,7 +291,8 @@ void MathParInset::Write(string &outf) outf += l->name; outf += ' '; } else { - fprintf(stderr, "Illegal symbol code[%u %d %d]", *s, ls, data.FCode()); + lyxerr << "Illegal symbol code[" << *s + << " " << ls << " " << data.FCode() << "]"; } } else { // Is there a standard logical XOR? @@ -302,7 +304,8 @@ void MathParInset::Write(string &outf) if (*s=='}') brace--; } if (*s=='}' && data.FCode()==LM_TC_TEX && brace<0) - fprintf(stderr, "Math warning: Unexpected closing brace.\n"); + lyxerr <<"Math warning: Unexpected closing brace." + << endl; else outf += (char) *s; } @@ -348,7 +351,7 @@ void MathParInset::Write(string &outf) break; } default: - fprintf(stderr, "WMath Error: unrecognized code[%d]", cx); + lyxerr << "WMath Error: unrecognized code[" << cx << "]"; return; } }