[LyX/master] Fix swapped logic (#11889)

Juergen Spitzmueller spitz at lyx.org
Fri Jun 19 14:17:01 UTC 2020


commit bde95c1876c78f5391d80b1c547411ba5886f347
Author: Juergen Spitzmueller <spitz at lyx.org>
Date:   Fri Jun 19 16:40:07 2020 +0200

    Fix swapped logic (#11889)
---
 src/insets/InsetQuotes.cpp |    8 ++++----
 1 files changed, 4 insertions(+), 4 deletions(-)

diff --git a/src/insets/InsetQuotes.cpp b/src/insets/InsetQuotes.cpp
index d7f7510..aa2e41b 100644
--- a/src/insets/InsetQuotes.cpp
+++ b/src/insets/InsetQuotes.cpp
@@ -350,7 +350,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;
@@ -358,7 +358,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;
@@ -393,7 +393,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;
@@ -401,7 +401,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;


More information about the lyx-cvs mailing list