commit 81413e77eee2e547e9715966a16c4c81a1c92a06
Author: Richard Kimberly Heck <rikih...@lyx.org>
Date:   Thu Jan 7 15:56:55 2021 -0500

    Amend cf07d4825
---
 src/insets/InsetRef.cpp |    9 +++++----
 1 files changed, 5 insertions(+), 4 deletions(-)

diff --git a/src/insets/InsetRef.cpp b/src/insets/InsetRef.cpp
index cf24571..3e299d8 100644
--- a/src/insets/InsetRef.cpp
+++ b/src/insets/InsetRef.cpp
@@ -263,12 +263,13 @@ void InsetRef::latex(otexstream & os, OutputParams const 
& rp) const
        else if (cmd == "formatted") {
                docstring label;
                docstring prefix;
-               bool const use_caps   = getParam("caps") == "true";
-               bool const use_plural = getParam("plural") == "true";
+               bool const use_caps     = getParam("caps") == "true";
+               bool const use_plural   = getParam("plural") == "true";
+               bool const use_refstyle = buffer().params().use_refstyle;
                docstring const fcmd =
-                       getFormattedCmd(data, label, prefix, use_caps);
+                       getFormattedCmd(data, label, prefix, use_refstyle, 
use_caps);
                os << fcmd;
-               if (buffer().params().use_refstyle && use_plural)
+               if (use_refstyle && use_plural)
                    os << "[s]";
                os << '{' << label << '}';
        }
-- 
lyx-cvs mailing list
lyx-cvs@lists.lyx.org
http://lists.lyx.org/mailman/listinfo/lyx-cvs

Reply via email to