* fix for mantis 17840, rounding of bits/line

git-svn-id: trunk@16313 -
This commit is contained in:
marco 2010-11-07 14:13:35 +00:00
parent e3fb3230ef
commit fb13dfc18f

View File

@ -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