1
0
Fork 0
mirror of https://github.com/juce-framework/JUCE.git synced 2026-02-03 03:30:06 +00:00
This commit is contained in:
jules 2008-06-19 15:59:27 +00:00
parent 447d114510
commit e92eb30e0f
3 changed files with 46 additions and 46 deletions

View file

@ -1195,7 +1195,7 @@ void Component::addChildComponent (Component* const child, int zOrder)
if (! child->isAlwaysOnTop())
{
if (zOrder < 0)
if (zOrder < 0 || zOrder > childComponentList_.size())
zOrder = childComponentList_.size();
while (zOrder > 0)