CanvasGroup: Fix handling z-index while moving child to front.

This commit is contained in:
Thomas Geymayer 2013-06-07 16:23:44 +02:00
parent 8896a59dff
commit 60a81dfbd8

View File

@ -301,11 +301,13 @@ namespace canvas
}
else
{
ChildList::iterator prev = child;
while( prev != _children.begin()
&& (--prev)->first->getIntValue("z-index", 0) > z_index)
ChildList::iterator prev = child,
check = child;
while( check != _children.begin()
&& (--check)->first->getIntValue("z-index", 0) > z_index )
{
--index_new;
--prev;
}
if( index == index_new )