mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-12-13 17:20:55 +00:00
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:
parent
02a70a2ab2
commit
1f6ce88328
@ -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;
|
||||
}
|
||||
|
||||
|
@ -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
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user