* Fix AV when reading palette. Fixes issue #39823

(cherry picked from commit f754ecf3d4)
This commit is contained in:
Michaël Van Canneyt 2022-07-03 10:31:25 +02:00 committed by marcoonthegit
parent 0a05f301f2
commit f88632b6a2

View File

@ -300,6 +300,7 @@ begin
end;
ParseFirstLine;
Img.SetSize (width, height);
Img.UsePalette := True;
ReadPalette;
ReadData;
finally