]> git.lyx.org Git - features.git/commitdiff
Fix swapped logic (#11889)
authorJuergen Spitzmueller <spitz@lyx.org>
Fri, 19 Jun 2020 14:40:07 +0000 (16:40 +0200)
committerJuergen Spitzmueller <spitz@lyx.org>
Sat, 20 Jun 2020 07:07:55 +0000 (09:07 +0200)
(cherry picked from commit bde95c1876c78f5391d80b1c547411ba5886f347)

src/insets/InsetQuotes.cpp
status.23x

index 568232af2336750f4418af2f74c9a5e5cf4c31c5..cdf25cfe50981d6b12635bda45f6968c4ef5c950 100644 (file)
@@ -353,7 +353,7 @@ docstring InsetQuotesParams::getLaTeXQuote(char_type c, string const & op,
        case 0x2019: {// '
                if (op == "int")
                        // This macro is redefined in rtl mode
-                       res = rtl ? "\\textquoteright" : "\\textquoteleft";
+                       res = rtl ? "\\textquoteleft" : "\\textquoteright";
                else
                        res = "'";
                break;
@@ -361,7 +361,7 @@ docstring InsetQuotesParams::getLaTeXQuote(char_type c, string const & op,
        case 0x2018: {// `
                if (op == "int")
                        // This macro is redefined in rtl mode
-                       res = rtl ? "\\textquoteleft" : "\\textquoteright";
+                       res = rtl ? "\\textquoteright" : "\\textquoteleft";
                else
                        res = "`";
                break;
@@ -396,7 +396,7 @@ docstring InsetQuotesParams::getLaTeXQuote(char_type c, string const & op,
        case 0x201d: {// ''
                if (op == "int")
                        // This macro is redefined in rtl mode
-                       res = rtl ? "\\textquotedblright" : "\\textquotedblleft";
+                       res = rtl ? "\\textquotedblleft" : "\\textquotedblright";
                else
                        res = "''";
                break;
@@ -404,7 +404,7 @@ docstring InsetQuotesParams::getLaTeXQuote(char_type c, string const & op,
        case 0x201c: {// ``
                if (op == "int")
                        // This macro is redefined in rtl mode
-                       res = rtl ? "\\textquotedblleft" : "\\textquotedblright";
+                       res = rtl ? "\\textquotedblright" : "\\textquotedblleft";
                else
                        res = "``";
                break;
index 411e40ce6bdac4f2015a2e877864589ca9b3a940..a536e012933fcf8e3e4ead91ee4408a8f60382d8 100644 (file)
@@ -45,6 +45,9 @@ What's new
 
 * DOCUMENT INPUT/OUTPUT
 
+- Fix wrong output of quotation marks in headings and captions with hyperref
+  enabled (bug 11889).
+
 
 * USER INTERFACE