IDE: editor options: use current formatversion as default

git-svn-id: trunk@49970 -
This commit is contained in:
mattias 2015-10-07 11:21:55 +00:00
parent 6afc2c033f
commit ad9bc5f97c

View File

@ -5215,7 +5215,7 @@ function TEditorOptions.ReadPascalColorScheme: String;
var
FormatVersion: Integer;
begin
FormatVersion := XMLConfig.GetValue('EditorOptions/Color/Version', 0); // Should default be EditorOptsFormatVersion?
FormatVersion := XMLConfig.GetValue('EditorOptions/Color/Version', EditorOptsFormatVersion);
if FormatVersion > 1 then
Result := XMLConfig.GetValue(
'EditorOptions/Color/Lang' + StrToValidXMLName(