Catch uncodable character problem

This commit is contained in:
Juergen Spitzmueller 2013-08-30 11:28:15 +02:00
parent cc0e0b1388
commit f9411f1f26

View File

@ -1302,7 +1302,7 @@ void Paragraph::Private::latexSpecialChar(otexstream & os,
docstring nextlatex; docstring nextlatex;
bool nexttipas = false; bool nexttipas = false;
string nexttipashortcut; string nexttipashortcut;
if (next != '\0' && next != META_INSET) { if (next != '\0' && next != META_INSET && encoding.encodable(next)) {
nextlatex = encoding.latexChar(next).first; nextlatex = encoding.latexChar(next).first;
if (runparams.inIPA) { if (runparams.inIPA) {
nexttipashortcut = Encodings::TIPAShortcut(next); nexttipashortcut = Encodings::TIPAShortcut(next);