Browse Source

* fix for mantis 17840, rounding of bits/line

git-svn-id: trunk@16313 -
marco 14 years ago
parent
commit
fb13dfc18f
1 changed files with 1 additions and 1 deletions
  1. 1 1
      packages/fcl-image/src/fpreadpnm.pp

+ 1 - 1
packages/fcl-image/src/fpreadpnm.pp

@@ -136,7 +136,7 @@ var
 begin
   ReadHeader(Stream);
   Img.SetSize(FWidth,FHeight);
-  FScanLineSize:=FBitPP*((FWidth+7)shr 3);
+  FScanLineSize:=(FBitPP*FWidth+7) shr 3;  // (bits/line +7)
   GetMem(FScanLine,FScanLineSize);
   try
     for Row:=0 to img.Height-1 do