commit 52da03695ba6b1a42a3d94df8a36ca55ba4b8748
Author: Juergen Spitzmueller <[email protected]>
Date:   Tue Apr 29 10:37:04 2025 +0200

    Fix ranges with varioref
---
 src/insets/InsetRef.cpp | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)

diff --git a/src/insets/InsetRef.cpp b/src/insets/InsetRef.cpp
index 338cdb5341..5657ba31c3 100644
--- a/src/insets/InsetRef.cpp
+++ b/src/insets/InsetRef.cpp
@@ -1001,9 +1001,12 @@ void InsetRef::updateStatistics(Statistics & stats) const
 
 bool InsetRef::useRange() const
 {
+       string const & cmd = getCmdName();
+       if (getLabels().size() == 2 && (cmd == "vref" || cmd == "vpageref")
+           && buffer().masterParams().xref_package != "zref")
+               return true;
        if (getLabels().size() != 2 || getParam("tuple") == "list")
                return false;
-       string const & cmd = getCmdName();
        return cmd == "vref" || cmd == "vpageref"
                || (cmd == "formatted" && buffer().masterParams().xref_package 
!= "prettyref")
                || (cmd == "cpageref");
-- 
lyx-cvs mailing list
[email protected]
https://lists.lyx.org/mailman/listinfo/lyx-cvs

Reply via email to