commit f94ba0e9c90567bdd135bb2c036955e66d2efc8f
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 ffaa916470..295294ae51 100644
--- a/src/frontends/qt/GuiRef.cpp
+++ b/src/frontends/qt/GuiRef.cpp
@@ -995,7 +995,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;
return selectedLV->currentItem() && !threshold;
}
--
lyx-cvs mailing list
[email protected]
https://lists.lyx.org/mailman/listinfo/lyx-cvs