fix line spacing

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@5739 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
John Levon 2002-11-28 01:21:52 +00:00
parent 49a05bc448
commit c5c8101ef2
2 changed files with 13 additions and 6 deletions

View File

@ -1,7 +1,11 @@
2002-11-28 John Levon <levon@movementarian.org>
* QDocument.C: fix line spacing
2002-11-27 Juergen Spitzmueller <j.spitzmueller@gmx.de>
* ui/TabularDialog.ui
* QTabular.C
* ui/TabularDialog.ui:
* QTabular.C:
* QTabularDialog.C: ui fixes.
2002-11-27 Dekel Tsur <dekelts@tau.ac.il>

View File

@ -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());