https://bugs.documentfoundation.org/show_bug.cgi?id=117335
--- Comment #8 from Armin Le Grand (CIB) <[email protected]> ---
No idea what to do when it's only on the Mac- I do not have one. The code
changed as follows:
- const BitmapColor& rColor = mrPalette[ (pData[mnX >> 3 ] >> ( 7 -
( mnX & 7 ) )) & 1];
+ // Caution(!) rPalette.GetEntryCount() may be != (depth^^2)-1 (!)
+ const sal_uInt8 nIndex( (pData[mnX >> 3 ] >> ( 7 - ( mnX & 7 ) ))
& 1);
Checking the index acces *is* needed (there are palettes with less than 0xff
colors - I thought about fixing this first). Maybe a Mac-Dev could tr to use
sal_uInt16 instead of sal_uInt8 - something strange with the Mac-Compiler seems
to be happening here (due to working on all other systems...).
Sprry, I have (still) no Mac.
--
You are receiving this mail because:
You are the assignee for the bug.
_______________________________________________
Libreoffice-bugs mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/libreoffice-bugs