commit 889e5eccc48c03e12bbf41025d585d7e80cdc274
Author: Juergen Spitzmueller <[email protected]>
Date:   Fri Oct 10 13:44:36 2025 +0200

    Fix range validation
---
 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 dceec9bbf3..a0c3081d8e 100644
--- a/src/frontends/qt/GuiRef.cpp
+++ b/src/frontends/qt/GuiRef.cpp
@@ -1009,7 +1009,7 @@ bool GuiRef::isValid()
        QString const reftype =
                typeCO->itemData(typeCO->currentIndex()).toString();
        bool const threshold = (reftype == "vref" || reftype == "vpageref")
-               && selectedLV->topLevelItemCount() > 1;
+               && selectedLV->topLevelItemCount() > 2;
        // these are not yet supported by InsetMathRef
        bool const notsupported = bufferview()->cursor().inMathed()
                        && selectedLV->topLevelItemCount() > 0
-- 
lyx-cvs mailing list
[email protected]
https://lists.lyx.org/mailman/listinfo/lyx-cvs

Reply via email to