mirror of
https://github.com/juce-framework/JUCE.git
synced 2026-02-03 03:30:06 +00:00
This commit is contained in:
parent
447d114510
commit
e92eb30e0f
3 changed files with 46 additions and 46 deletions
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue