IDE, EditorOpts: fixed old hard coded default font height, use SynDefaultFontHeight

git-svn-id: trunk@32051 -
This commit is contained in:
martin 2011-08-25 17:28:40 +00:00
parent fb0810d4a7
commit 4a3ebdadfa

View File

@ -1272,7 +1272,7 @@ procedure RepairEditorFontHeight(var FontHeight: integer);
begin begin
if ((FontHeight>=0) and (FontHeight<=5)) if ((FontHeight>=0) and (FontHeight<=5))
or ((FontHeight<0) and (FontHeight>=-5)) then or ((FontHeight<0) and (FontHeight>=-5)) then
FontHeight:=12; FontHeight := SynDefaultFontHeight;
end; end;
function StrToLazSyntaxHighlighter(const s: String): TLazSyntaxHighlighter; function StrToLazSyntaxHighlighter(const s: String): TLazSyntaxHighlighter;