]> git.lyx.org Git - features.git/commitdiff
Catch uncodable character problem
authorJuergen Spitzmueller <spitz@lyx.org>
Fri, 30 Aug 2013 09:28:15 +0000 (11:28 +0200)
committerJuergen Spitzmueller <spitz@lyx.org>
Fri, 30 Aug 2013 09:28:15 +0000 (11:28 +0200)
src/Paragraph.cpp

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