EditorOptions: PreviewSyn would not always show correct "every nth LineNum only"

git-svn-id: trunk@21219 -
This commit is contained in:
martin 2009-08-13 23:27:18 +00:00
parent e993b0b561
commit 8a5cb23dc0

View File

@ -281,11 +281,13 @@ procedure TEditorDisplayOptionsFrame.ReadSettings(AOptions: TAbstractIDEOptions)
begin
with AOptions as TEditorOptions do
begin
// init the spin-edit first, since it does not trigger on change,
// but is copied when checkboxes are initalized
ShowOnlyLineNumbersMultiplesOfSpinEdit.Value := ShowOnlyLineNumbersMultiplesOf;
GutterSeparatorIndexSpinBox.Value := GutterSeparatorIndex;
VisibleRightMarginCheckBox.Checked := VisibleRightMargin;
VisibleGutterCheckBox.Checked := VisibleGutter;
ShowLineNumbersCheckBox.Checked := ShowLineNumbers;
ShowOnlyLineNumbersMultiplesOfSpinEdit.Value := ShowOnlyLineNumbersMultiplesOf;
GutterSeparatorIndexSpinBox.Value := GutterSeparatorIndex;
VisibleRightMarginCheckBox.Checked := VisibleRightMargin;
SetComboBoxText(RightMarginComboBox, IntToStr(RightMargin));
SetComboBoxText(EditorFontComboBox, EditorFont);