From 7890255bf80592e3e066b3fead4bc449be792ca1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=BCrgen=20Spitzm=C3=BCller?= Date: Wed, 14 Jan 2009 14:25:52 +0000 Subject: [PATCH] * GuiBox.cpp: - fix enabling behaviour of height widgets. git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_6_X@28155 a592a061-630c-0410-9148-cb99ea01b6c8 --- src/frontends/qt4/GuiBox.cpp | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/src/frontends/qt4/GuiBox.cpp b/src/frontends/qt4/GuiBox.cpp index 744cbd2a3e..ecabd17c2a 100644 --- a/src/frontends/qt4/GuiBox.cpp +++ b/src/frontends/qt4/GuiBox.cpp @@ -162,10 +162,8 @@ void GuiBox::innerBoxChanged(QString const & str) halignCO->setEnabled(!ibox); heightCB->setEnabled(ibox); pagebreakCB->setEnabled(!ibox && typeCO->currentIndex() == 1); - if (heightCB->checkState() == Qt::Checked && ibox) { - heightED->setEnabled(true); - heightUnitsLC->setEnabled(true); - } + heightED->setEnabled(heightCB->checkState() == Qt::Checked && ibox); + heightUnitsLC->setEnabled(heightCB->checkState() == Qt::Checked && ibox); setSpecial(ibox); } @@ -178,8 +176,8 @@ void GuiBox::typeChanged(int index) ialignCO->setEnabled(true); halignCO->setEnabled(false); heightCB->setEnabled(true); - heightED->setEnabled(true); - heightUnitsLC->setEnabled(true); + heightED->setEnabled(heightCB->checkState() == Qt::Checked); + heightUnitsLC->setEnabled(heightCB->checkState() == Qt::Checked); setSpecial(true); } if (index != 1)