mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-08-09 10:56:35 +02:00
SynEdit: do not crash the IDE, when failing to read config
git-svn-id: trunk@42425 -
This commit is contained in:
parent
8ad2de8e3a
commit
a2561585c7
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user