mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-12-23 05:25:26 +00:00
GuiWrap.cpp: fix checkbox state handling when dialog is updated
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@20691 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
parent
e6ee456ced
commit
d172c3d4b4
@ -183,10 +183,20 @@ void GuiWrapDialog::updateContents()
|
||||
Length len_w(params.width);
|
||||
widthED->setText(QString::number(len_w.value()));
|
||||
widthUnitLC->setCurrentItem(len_w.unit());
|
||||
|
||||
Length len_o(params.overhang);
|
||||
overhangED->setText(QString::number(len_o.value()));
|
||||
overhangUnitLC->setCurrentItem(len_o.unit());
|
||||
if (len_o.value() == 0)
|
||||
overhangCB->setCheckState(Qt::Unchecked);
|
||||
else
|
||||
overhangCB->setCheckState(Qt::Checked);
|
||||
|
||||
linesSB->setValue(params.lines);
|
||||
if (params.lines == 0)
|
||||
linesCB->setCheckState(Qt::Unchecked);
|
||||
else
|
||||
linesCB->setCheckState(Qt::Checked);
|
||||
|
||||
int item = 0;
|
||||
if (params.placement == "i")
|
||||
|
Loading…
Reference in New Issue
Block a user