commit bccafdac192438cfdbc82961f8f4c742ffd4b797
Author: Juergen Spitzmueller <[email protected]>
Date: Fri Jun 19 16:40:07 2020 +0200
Fix swapped logic (#11889)
(cherry picked from commit bde95c1876c78f5391d80b1c547411ba5886f347)
---
src/insets/InsetQuotes.cpp | 8 ++++----
status.23x | 3 +++
2 files changed, 7 insertions(+), 4 deletions(-)
diff --git a/src/insets/InsetQuotes.cpp b/src/insets/InsetQuotes.cpp
index 568232a..cdf25cf 100644
--- a/src/insets/InsetQuotes.cpp
+++ b/src/insets/InsetQuotes.cpp
@@ -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;
diff --git a/status.23x b/status.23x
index 411e40c..a536e01 100644
--- a/status.23x
+++ b/status.23x
@@ -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
--
lyx-cvs mailing list
[email protected]
http://lists.lyx.org/mailman/listinfo/lyx-cvs