Allow negative offset in GuiLine (#13102)

(cherry picked from commit 2244ac3dee)
This commit is contained in:
Juergen Spitzmueller 2024-09-25 09:53:00 +02:00
parent 5237ccd4eb
commit f56fcd01a2
2 changed files with 5 additions and 1 deletions

View File

@ -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));

View File

@ -58,6 +58,7 @@ What's new
* USER INTERFACE
- Allow negative offset values in Horizontal Line dialog (bug 13102).
* INTERNALS