]> git.lyx.org Git - lyx.git/commitdiff
Limit ligature protection to quote ligature chars
authorJuergen Spitzmueller <spitz@lyx.org>
Tue, 13 Dec 2016 06:50:08 +0000 (07:50 +0100)
committerJuergen Spitzmueller <spitz@lyx.org>
Tue, 13 Dec 2016 06:50:08 +0000 (07:50 +0100)
Should also go to stable.

src/insets/InsetQuotes.cpp

index db1de0fd324a5758b34b18bae903a9cc2dba872e..c538b88878638004396eb0120765054d3ef3dc93 100644 (file)
@@ -310,7 +310,7 @@ void InsetQuotes::latex(otexstream & os, OutputParams const & runparams) const
                        if (lastchar == '!' || lastchar == '?')
                                qstr.insert(0, "{}");
                }
-               if (qstr[0] == lastchar)
+               if (contains(from_ascii(",'`<>"), lastchar) && qstr[0] == lastchar)
                        qstr.insert(0, "{}");
        }