diff --git a/src/frontends/qt2/ChangeLog b/src/frontends/qt2/ChangeLog index 2f8ada5864..c462c4a97e 100644 --- a/src/frontends/qt2/ChangeLog +++ b/src/frontends/qt2/ChangeLog @@ -1,7 +1,11 @@ +2002-11-28 John Levon + + * QDocument.C: fix line spacing + 2002-11-27 Juergen Spitzmueller - * ui/TabularDialog.ui - * QTabular.C + * ui/TabularDialog.ui: + * QTabular.C: * QTabularDialog.C: ui fixes. 2002-11-27 Dekel Tsur diff --git a/src/frontends/qt2/QDocument.C b/src/frontends/qt2/QDocument.C index 5f71c707e1..1a4ad09ba4 100644 --- a/src/frontends/qt2/QDocument.C +++ b/src/frontends/qt2/QDocument.C @@ -472,11 +472,14 @@ void QDocument::update_contents() dialog_->packagesModule->amsCB->setChecked( params.use_amsmath); - // FIXME: this is wrong - // QComboBox::setCurrentItem: (lspacingCO) Index 4 out of range + switch (params.spacing.getSpace()) { + case Spacing::Other: nitem = 3; break; + case Spacing::Double: nitem = 2; break; + case Spacing::Onehalf: nitem = 1; break; + case Spacing::Default: case Spacing::Single: nitem = 0; break; + } - dialog_->packagesModule->lspacingCO-> - setCurrentItem(params.spacing.getSpace()); + dialog_->packagesModule->lspacingCO->setCurrentItem(nitem); if (params.spacing.getSpace() == Spacing::Other) { dialog_->packagesModule->lspacingLE->setText( tostr(params.spacing.getValue()).c_str());