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:
Uwe Stöhr 2007-10-03 09:57:51 +00:00
parent e6ee456ced
commit d172c3d4b4

View File

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