fix, reg 2a3, default font size not applyed on new editor,

+ side effect: strange behaviour of zooming with CTRL +
This commit is contained in:
Basile Burg 2015-12-15 02:33:15 +01:00
parent 873adf97f1
commit 370da3a268
1 changed files with 4 additions and 0 deletions

View File

@ -442,7 +442,11 @@ end;
{$REGION ICEMultiDocObserver ---------------------------------------------------}
procedure TCEEditorOptions.docNew(aDoc: TCESynMemo);
begin
//apply...des not modify font size to preserve current zoom
// when called after the options are edited
applyChangeToEditor(aDoc);
// must be set manually for a new doc
aDoc.Font.Size:=self.font.Size;
end;
procedure TCEEditorOptions.docFocused(aDoc: TCESynMemo);