Fix bug #7310 (Greek symbols inside ERT cause unreported compile failure)

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_6_X@37794 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
Enrico Forestieri 2011-02-27 14:00:47 +00:00
parent 02a70a2ab2
commit 1f6ce88328
2 changed files with 8 additions and 11 deletions

View File

@ -863,18 +863,13 @@ void Paragraph::Private::latexSpecialChar(
{
char_type const c = text_[i];
if (style.pass_thru) {
if (c != '\0')
// FIXME UNICODE: This can fail if c cannot
// be encoded in the current encoding.
if (style.pass_thru || runparams.verbatim) {
if (c != '\0') {
Encoding const * const enc = runparams.encoding;
if (enc && enc->latexChar(c, true).empty())
throw EncodingException(c);
os.put(c);
return;
}
if (runparams.verbatim) {
// FIXME UNICODE: This can fail if c cannot
// be encoded in the current encoding.
os.put(c);
}
return;
}

View File

@ -52,6 +52,8 @@ What's new
- Protect the math commands \overset and \underset in fragile context
(bug 7252).
- When exporting, alert about uncodable characters in ERT insets (bug 7310).
* USER INTERFACE