mirror of https://gitlab.com/basile.b/dexed.git
fix, reg 2a3, default font size not applyed on new editor,
+ side effect: strange behaviour of zooming with CTRL +
This commit is contained in:
parent
873adf97f1
commit
370da3a268
|
|
@ -442,7 +442,11 @@ end;
|
||||||
{$REGION ICEMultiDocObserver ---------------------------------------------------}
|
{$REGION ICEMultiDocObserver ---------------------------------------------------}
|
||||||
procedure TCEEditorOptions.docNew(aDoc: TCESynMemo);
|
procedure TCEEditorOptions.docNew(aDoc: TCESynMemo);
|
||||||
begin
|
begin
|
||||||
|
//apply...des not modify font size to preserve current zoom
|
||||||
|
// when called after the options are edited
|
||||||
applyChangeToEditor(aDoc);
|
applyChangeToEditor(aDoc);
|
||||||
|
// must be set manually for a new doc
|
||||||
|
aDoc.Font.Size:=self.font.Size;
|
||||||
end;
|
end;
|
||||||
|
|
||||||
procedure TCEEditorOptions.docFocused(aDoc: TCESynMemo);
|
procedure TCEEditorOptions.docFocused(aDoc: TCESynMemo);
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue