]> git.lyx.org Git - features.git/commitdiff
Fix #10583 - plain quote inset latex export in different font encodings.
authorGünter Milde <milde@lyx.org>
Thu, 11 May 2017 16:08:11 +0000 (18:08 +0200)
committerGünter Milde <milde@lyx.org>
Thu, 11 May 2017 16:08:46 +0000 (18:08 +0200)
Since [e68afbe671394a/lyxgit], plain quotes came out wrong if the document
contains text parts in languages setting a different font encoding.

src/insets/InsetQuotes.cpp

index 7032a068a3c3765500c0634a16e42bb4209e2577..706bc0e7915b493548842c46d43fe1920b73cc9a 100644 (file)
@@ -374,11 +374,7 @@ docstring InsetQuotesParams::getLaTeXQuote(char_type c, string const & op) const
                break;
        }
        case 0x0027: {// ' (plain)
-               if (op == "t1")
-                       res = "\\textquotesingle";
-               else
-                       res = "\\char39";
-               break;
+               res = "\\textquotesingle";
        }
        case 0x201e: {// ,,
                if (op == "t1")
@@ -422,11 +418,7 @@ docstring InsetQuotesParams::getLaTeXQuote(char_type c, string const & op) const
                break;
        }
        case 0x0022: {// "
-               if (op == "t1")
-                       res = "\\textquotedbl";
-               else
-                       res = "\\char34";
-               break;
+               res = "\\textquotedbl";
        }
        // The following are fakes
        // This is just to get something symbolic