mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-09-21 14:50:08 +02:00
* Fix AV when reading palette. Fixes issue #39823
(cherry picked from commit f754ecf3d4
)
This commit is contained in:
parent
0a05f301f2
commit
f88632b6a2
@ -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