IDE: environmentoption.xml: if file has no version use current version to get get current defaults

git-svn-id: trunk@51714 -
This commit is contained in:
mattias 2016-02-26 13:25:22 +00:00
parent 84f6747f70
commit f5d37c87cb

View File

@ -1674,7 +1674,7 @@ begin
// ToDo: Get rid of EnvironmentOptions/ path. The whole file is about
// environment options. Many section are not under it any more.
Path:='EnvironmentOptions/';
FFileVersion:=FXMLCfg.GetValue(Path+'Version/Value',0);
FFileVersion:=FXMLCfg.GetValue(Path+'Version/Value',EnvOptsVersion);
FOldLazarusVersion:=FXMLCfg.GetValue(Path+'Version/Lazarus','');
if FOldLazarusVersion='' then begin
// 108 added LastCalledByLazarusFullPath