]> git.lyx.org Git - lyx.git/blobdiff - src/BufferParams.cpp
adjust
[lyx.git] / src / BufferParams.cpp
index 1c4281d358bef4cbd1716b1b503734be4c43b976..303fe2fcb229f7e7b595d00df85464dc0979cd24 100644 (file)
@@ -1168,7 +1168,8 @@ bool BufferParams::writeLaTeX(odocstream & os, LaTeXFeatures & features,
        // * Has to be loaded before the "LyX specific LaTeX commands" to
        //   avoid errors with algorithm floats.
        odocstringstream oss;
-       pdfoptions().writeLaTeX(oss);
+       // use hyperref explicitely when it is required
+       pdfoptions().writeLaTeX(oss, features.isRequired("hyperref"));
        lyxpreamble += oss.str();
 
        // this might be useful...