]> git.lyx.org Git - features.git/commitdiff
Fix quotation marks in PDF TOC
authorJuergen Spitzmueller <spitz@lyx.org>
Mon, 6 Apr 2020 06:53:29 +0000 (08:53 +0200)
committerJean-Marc Lasgouttes <lasgouttes@lyx.org>
Thu, 18 Jun 2020 13:48:55 +0000 (15:48 +0200)
src/insets/InsetQuotes.cpp

index f7045c8131584112017f32d076eed7a95f86a03f..2f70f87222709651f7ddaac33509d3e1fbe3565b 100644 (file)
@@ -880,6 +880,10 @@ void InsetQuotes::latex(otexstream & os, OutputParams const & runparams) const
                        qstr = from_ascii("\\og");
                else
                        qstr = from_ascii("\\fg");
+       } else if (runparams.use_hyperref && runparams.moving_arg) {
+               // Use internal commands in headings with hyperref
+               // (ligatures not featured in PDF strings)
+               qstr = quoteparams.getLaTeXQuote(quotechar, "int", rtl_);
        } else if (fontenc_ == "T1"
                   && !runparams.local_font->language()->internalFontEncoding()) {
                // Quotation marks for T1 font encoding