commit f56fcd01a289443d33f613de4f173ab7f03c8473
Author: Juergen Spitzmueller <[email protected]>
Date: Wed Sep 25 09:53:00 2024 +0200
Allow negative offset in GuiLine (#13102)
(cherry picked from commit 2244ac3dee416235b49e671b67d63d2ca1f4dcb6)
---
src/frontends/qt/GuiLine.cpp | 5 ++++-
status.24x | 1 +
2 files changed, 5 insertions(+), 1 deletion(-)
diff --git a/src/frontends/qt/GuiLine.cpp b/src/frontends/qt/GuiLine.cpp
index 2a8b9de2bc..8587a5d6eb 100644
--- a/src/frontends/qt/GuiLine.cpp
+++ b/src/frontends/qt/GuiLine.cpp
@@ -56,7 +56,10 @@ GuiLine::GuiLine(QWidget * parent) :
InsetParamsWidget(parent)
addCheckedWidget(WidthLE, WidthValueL);
addCheckedWidget(HeightLE, HeightValueL);
- OffsetLE->setValidator(unsignedGlueLengthValidator(OffsetLE));
+ // Set up a signed glue length validator
+ LengthValidator * v = new LengthValidator(OffsetLE);
+ v->setBottom(GlueLength());
+ OffsetLE->setValidator(v);
WidthLE->setValidator(unsignedGlueLengthValidator(WidthLE));
HeightLE->setValidator(unsignedGlueLengthValidator(HeightLE));
diff --git a/status.24x b/status.24x
index 7dd76024cc..d505c33fd9 100644
--- a/status.24x
+++ b/status.24x
@@ -58,6 +58,7 @@ What's new
* USER INTERFACE
+- Allow negative offset values in Horizontal Line dialog (bug 13102).
* INTERNALS
--
lyx-cvs mailing list
[email protected]
http://lists.lyx.org/mailman/listinfo/lyx-cvs