maybe i misunderstand this, but it think this:
[code]void LookAndFeel::setColour (const int colourId, const Colour& colour) throw()
{
const int index = colourIds.indexOf (colourId);
if (index >= 0)
colours.set (index, colour);
colourIds.add (colourId);
colours.add (colour);
}
[/code]
should be
[code]void LookAndFeel::setColour (const int colourId, const Colour& colour) throw()
{
const int index = colourIds.indexOf (colourId);
if (index >= 0)
{
colours.set (index, colour);
}
else
{
colourIds.add (colourId);
colours.add (colour);
}
[/code]