SynEdit: do not crash the IDE, when failing to read config

git-svn-id: trunk@42425 -
This commit is contained in:
martin 2013-08-18 21:57:30 +00:00
parent 8ad2de8e3a
commit a2561585c7

View File

@ -4287,9 +4287,13 @@ begin
if IsText then
begin (* *** Decode from Text for XML *** *)
FoldHelper.Decompress;
try
FoldHelper.Decompress;
except
exit;
end;
if not FoldHelper.VerifyChecksum then
raise ESynEditError.Create('fold checksum error');
exit; //raise ESynEditError.Create('fold checksum error');
i := 0;
while not FoldHelper.EOF do begin