Allow negative offset in GuiLine (#13102)

This commit is contained in:
Juergen Spitzmueller 2024-09-25 09:53:00 +02:00
parent 766f666cbb
commit 2244ac3dee

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