mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-08-10 16:27:01 +02:00
* Fix AV when reading palette. Fixes issue #39823
This commit is contained in:
parent
672f90bf40
commit
f754ecf3d4
@ -300,6 +300,7 @@ begin
|
||||
end;
|
||||
ParseFirstLine;
|
||||
Img.SetSize (width, height);
|
||||
Img.UsePalette := True;
|
||||
ReadPalette;
|
||||
ReadData;
|
||||
finally
|
||||
|
Loading…
Reference in New Issue
Block a user