Some debug messages

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@2438 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
Angus Leeming 2001-08-07 08:48:27 +00:00
parent d7525e9740
commit fb2300f658
2 changed files with 12 additions and 2 deletions

View File

@ -1,3 +1,7 @@
2001-08-07 Angus Leeming <a.leeming@ic.ac.uk>
* insetlatexaccent.C (checkContents): Add some debug messages
2001-08-07 Juergen Vigna <jug@sad.it>
* insetert.C (read): don't use InsetCollapsable::read as we don't

View File

@ -47,7 +47,10 @@ void InsetLatexAccent::checkContents()
{
candisp = false;
if (contents.empty() || contents.length() < 2) return;
if (contents.empty() || contents.length() < 2) {
lyxerr[Debug::KEY] << "Cannot decode: " << contents << endl;
return;
}
// REMOVE IN 0.13
// Dirty Hack for backward compability. remove in 0.13 (Lgb)
@ -87,7 +90,10 @@ void InsetLatexAccent::checkContents()
contents = tmp;
}
}
if (contents[0] != '\\') return; // demand that first char is a '\\'
if (contents[0] != '\\') { // demand that first char is a '\\'
lyxerr[Debug::KEY] << "Cannot decode: " << contents << endl;
return;
}
lyxerr[Debug::KEY] << "Decode: " << contents << endl;