From 370da3a2687cde0872d924a550e23397a2a6724f Mon Sep 17 00:00:00 2001 From: Basile Burg Date: Tue, 15 Dec 2015 02:33:15 +0100 Subject: [PATCH] fix, reg 2a3, default font size not applyed on new editor, + side effect: strange behaviour of zooming with CTRL + --- src/ce_editoroptions.pas | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/ce_editoroptions.pas b/src/ce_editoroptions.pas index 4ccaec01..8c0a51b0 100644 --- a/src/ce_editoroptions.pas +++ b/src/ce_editoroptions.pas @@ -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);