From f56fcd01a289443d33f613de4f173ab7f03c8473 Mon Sep 17 00:00:00 2001 From: Juergen Spitzmueller Date: Wed, 25 Sep 2024 09:53:00 +0200 Subject: [PATCH] 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