commit 07bebad5ecb7762108e8d19661f80e35d3ec36a4
Author: Juergen Spitzmueller <[email protected]>
Date:   Tue Apr 29 10:39:02 2025 +0200

    Fix ranges threshold
---
 src/frontends/qt/GuiRef.cpp | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/frontends/qt/GuiRef.cpp b/src/frontends/qt/GuiRef.cpp
index bf739736a3..9fbe5caf2f 100644
--- a/src/frontends/qt/GuiRef.cpp
+++ b/src/frontends/qt/GuiRef.cpp
@@ -243,7 +243,7 @@ void GuiRef::typeChanged()
        QString const reftype =
                typeCO->itemData(typeCO->currentIndex()).toString();
        bool const threshold = (reftype == "vref" || reftype == "vpageref")
-               && selectedLV->topLevelItemCount() > 1;
+               && selectedLV->topLevelItemCount() > 2;
        if (threshold)
                Alert::warning(_("Unsupported setting!"),
                        _("The reference type you selected allows for maximally 
two target labels."));
-- 
lyx-cvs mailing list
[email protected]
https://lists.lyx.org/mailman/listinfo/lyx-cvs

Reply via email to