]> git.lyx.org Git - lyx.git/blobdiff - src/PDFOptions.cpp
Limit the nopassthurchars case in beamer to URL
[lyx.git] / src / PDFOptions.cpp
index 1a15b0b217c395217621efbb5b002501d3e9cf8d..c3d057eba8d17d882acded2da52382e600454b18 100644 (file)
@@ -15,7 +15,6 @@
 
 #include "Encoding.h"
 #include "LaTeXFeatures.h"
-#include "Lexer.h"
 #include "OutputParams.h"
 #include "texstream.h"
 
@@ -23,6 +22,7 @@
 #include "support/debug.h"
 #include "support/docstream.h"
 #include "support/docstring.h"
+#include "support/Lexer.h"
 #include "support/lstrings.h"
 
 #include <sstream>
@@ -108,7 +108,7 @@ void PDFOptions::writeLaTeX(OutputParams & runparams, otexstream & os,
        // Since LyX uses unicode, also set the PDF strings to unicode strings
        // with the hyperref option "unicode". This is only needed with pdflatex.
        // As of 2021/02/04, unicode=true is default.
-       if (!LaTeXFeatures::isAvailable("hyperref-2021/02/04")
+       if (!LaTeXFeatures::isAvailableAtLeastFrom("hyperref", 2021, 2, 4)
             && !runparams.isFullUnicode() && !runparams.use_japanese)
                opt += "unicode=true,";