mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-11-22 01:59:02 +00:00
Allow negative offset in GuiLine (#13102)
This commit is contained in:
parent
766f666cbb
commit
2244ac3dee
@ -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));
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user