1
0
Fork 0
mirror of https://github.com/juce-framework/JUCE.git synced 2026-01-10 23:44:24 +00:00

Added call to Component::colourChanged when the l+f changes.

This commit is contained in:
jules 2012-05-31 10:20:21 +01:00
parent 26d27f5f6e
commit 51e99b31f9

View file

@ -2049,14 +2049,19 @@ void Component::sendLookAndFeelChange()
if (safePointer != nullptr)
{
for (int i = childComponentList.size(); --i >= 0;)
colourChanged();
if (safePointer != nullptr)
{
childComponentList.getUnchecked (i)->sendLookAndFeelChange();
for (int i = childComponentList.size(); --i >= 0;)
{
childComponentList.getUnchecked (i)->sendLookAndFeelChange();
if (safePointer == nullptr)
return;
if (safePointer == nullptr)
return;
i = jmin (i, childComponentList.size());
i = jmin (i, childComponentList.size());
}
}
}
}