Explorar el Código

* Fix AV when reading palette. Fixes issue #39823

Michaël Van Canneyt hace 3 años
padre
commit
f754ecf3d4
Se han modificado 1 ficheros con 1 adiciones y 0 borrados
  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