mirror of
https://git.lyx.org/repos/lyx.git
synced 2025-01-10 18:58:10 +00:00
Fix bug:
The "Maths spacing" dialog is broken ("Apply" does not work without former user change in the dialog) git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@2709 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
parent
572b58dfad
commit
dfea8a9dad
@ -6,6 +6,9 @@
|
||||
|
||||
2001-09-07 Angus Leeming <a.leeming@ic.ac.uk>
|
||||
|
||||
* FormMathsSpace.C: Fix bug: the "Maths spacing" dialog is broken
|
||||
("Apply" does not work without former user change in the dialog).
|
||||
|
||||
* FormPreferences.C (build): Fix bug: if you start LyX and open the
|
||||
Preferences dialog, "Apply" is activated even though no change has been
|
||||
made so far.
|
||||
|
@ -40,6 +40,7 @@ void FormMathsSpace::build()
|
||||
dialog_.reset(build_maths_space());
|
||||
|
||||
fl_set_button(dialog_->radio_thin, 1);
|
||||
space_ = 1;
|
||||
|
||||
bc().setOK(dialog_->button_ok);
|
||||
bc().setApply(dialog_->button_apply);
|
||||
@ -56,7 +57,7 @@ void FormMathsSpace::build()
|
||||
|
||||
void FormMathsSpace::apply()
|
||||
{
|
||||
if (space_ > 0)
|
||||
if (space_ >= 0)
|
||||
parent_.insertSymbol(latex_mathspace[space_]);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user