Issue with swapRGBOrder

Hi Julian,

I’m having some issues with an assert in the function swapRGBOrder:

jassert (Rectangle (0, 0, juceImage.getWidth(), juceImage.getHeight()) .contains (Rectangle (x, y, w, h)));

This assert fails sometimes when swapRGBOrder is called by JuceNSImage::draw, which in turn is called by NSViewComponentPeer::drawRect.

Basically, it seems that the “clip” RectangleList that is passed to the draw function contains some rectangles that are partially outside of the image itself.

Please can people stop reporting bugs in old code!

The mac rendering code now uses CoreGraphics images - none of the code you’re talking about even exists any more!