mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-12-22 21:21:32 +00:00
John's paragraph spacing patch.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@2661 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
parent
781db21b32
commit
1b0c700cc1
@ -1,3 +1,7 @@
|
||||
2001-09-02 John Levon <moz@compsoc.man.ac.uk>
|
||||
|
||||
* FormParagraph.C: fix default line spacing case
|
||||
|
||||
2001-08-31 John Levon <moz@compsoc.man.ac.uk>
|
||||
|
||||
* FormParagraph.C: disable space inputs when != Length
|
||||
|
@ -333,33 +333,19 @@ void FormParagraph::update()
|
||||
par_->params().noindent());
|
||||
|
||||
int linespacing;
|
||||
Spacing space = par_->params().spacing();
|
||||
|
||||
/*
|
||||
switch (lv_->buffer()->params.spacing.getSpace()) {
|
||||
case Spacing::Default: linespacing = 1; break;
|
||||
case Spacing::Single: linespacing = 2; break;
|
||||
case Spacing::Onehalf: linespacing = 3; break;
|
||||
case Spacing::Double: linespacing = 4; break;
|
||||
case Spacing::Other: linespacing = 5; break;
|
||||
}
|
||||
*/
|
||||
Spacing const space = par_->params().spacing();
|
||||
|
||||
switch (space.getSpace()) {
|
||||
case Spacing::Default: linespacing = 1; break;
|
||||
default: linespacing = 1; break;
|
||||
case Spacing::Single: linespacing = 2; break;
|
||||
case Spacing::Onehalf: linespacing = 3; break;
|
||||
case Spacing::Double: linespacing = 4; break;
|
||||
case Spacing::Other: linespacing = 5; break;
|
||||
}
|
||||
|
||||
fl_set_choice(dialog_->choice_linespacing, linespacing);
|
||||
if (space.getSpace() == Spacing::Other) {
|
||||
string sp;
|
||||
|
||||
if (space.getSpace() == Spacing::Default)
|
||||
sp = tostr(lv_->buffer()->params.spacing.getValue());
|
||||
else
|
||||
sp = tostr(space.getValue());
|
||||
string const sp = tostr(space.getValue());
|
||||
fl_set_input(dialog_->input_linespacing, sp.c_str());
|
||||
setEnabled(dialog_->input_linespacing, true);
|
||||
} else {
|
||||
|
Loading…
Reference in New Issue
Block a user