Selaa lähdekoodia

* Fix AV when reading palette. Fixes issue #39823

Michaël Van Canneyt 3 vuotta sitten
vanhempi
commit
f754ecf3d4
1 muutettua tiedostoa jossa 1 lisäystä ja 0 poistoa
  1. 1 0
      packages/fcl-image/src/fpreadxpm.pp

+ 1 - 0
packages/fcl-image/src/fpreadxpm.pp

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