]> git.lyx.org Git - features.git/commitdiff
Use master buffer setting when exporting
authorRichard Kimberly Heck <rikiheck@lyx.org>
Fri, 18 Aug 2023 23:17:05 +0000 (19:17 -0400)
committerRichard Kimberly Heck <rikiheck@lyx.org>
Fri, 18 Aug 2023 23:25:04 +0000 (19:25 -0400)
src/insets/InsetRef.cpp

index 0938b47e2713db4f636dae909e36fe7248431cf7..277f8e51552da450c53c83644a8d59d6c992deee 100644 (file)
@@ -260,12 +260,12 @@ void InsetRef::latex(otexstream & os, OutputParams const & rp) const
 {
        string const & cmd = getCmdName();
        docstring const & data = getEscapedLabel(rp);
-       bool const hyper_on = buffer().params().pdfoptions().use_hyperref;
+       bool const hyper_on = buffer().masterParams().pdfoptions().use_hyperref;
 
        if (rp.inulemcmd > 0)
                os << "\\mbox{";
 
-       if (buffer().params().use_refstyle && cmd == "eqref") {
+       if (buffer().masterParams().use_refstyle && cmd == "eqref") {
                // we advertise this as printing "(n)", so we'll do that, at least
                // for refstyle, since refstlye's own \eqref prints, by default,
                // "equation n". if one wants \eqref, one can get it by using a
@@ -281,7 +281,7 @@ void InsetRef::latex(otexstream & os, OutputParams const & rp) const
                docstring prefix;
                bool const use_caps     = getParam("caps") == "true";
                bool const use_plural   = getParam("plural") == "true";
-               bool const use_refstyle = buffer().params().use_refstyle;
+               bool const use_refstyle = buffer().masterParams().use_refstyle;
                docstring const fcmd =
                        getFormattedCmd(data, label, prefix, use_refstyle, use_caps);
                os << fcmd;
@@ -576,7 +576,7 @@ void InsetRef::validate(LaTeXFeatures & features) const
                docstring const data = getEscapedLabel(features.runparams());
                docstring label;
                docstring prefix;
-               bool const use_refstyle = buffer().params().use_refstyle;
+               bool const use_refstyle = buffer().masterParams().use_refstyle;
                bool const use_caps   = getParam("caps") == "true";
                docstring const fcmd =
                        getFormattedCmd(data, label, prefix, use_refstyle, use_caps);