Oops. Was setting the end of the palette data in uchars rather than
QRgbs.