https://issues.apache.org/ooo/show_bug.cgi?id=106063

--- Comment #10 from hanya <[email protected]> ---
Comment 8 is wrong. The problem is not reading the pixel data before the
correct position, 
but the skipping another bytes for the pallet.

The offset to the pixel data is read from the file header and it is passed to 
ImplReadDIBBody function (in vcl/source/gdi/dibtools.cxx). 
Before reading pixel data by calling ImplReadDIBBits function, 
the position in the SvStream is changed if the offset is provided.
In ImplReadDIBBits function, near the following comment, 
additional seek is done for skipping the palette.
> // true color DIB's can have a (optimization) palette

In the case of the attached bitmap file, additional 1024(256 colors) bytes are 
skipped. 
And bytes data is read from the wrong position.

-- 
You are receiving this mail because:
You are on the CC list for the bug.
You are the assignee for the bug.
You are watching all bug changes.

Reply via email to