> bool a2dCanvasObjectList::BringToTop( a2dCanvasObjectFlagsMask mask ) method
>
The next makes it work:
bool a2dCanvasObjectList::BringToTop( a2dCanvasObjectFlagsMask mask )
{
a2dCanvasObjectList toTop;
bool did=false;
a2dCanvasObjectList::iterator iter = begin();
while( iter != end() )
{
a2dCanvasObjectList::value_type obj = *iter;
if ( obj && obj->CheckMask(mask))
{
toTop.push_back( obj );
did=true;
iter = erase( iter );
obj->SetPending(true);
}
else
iter++;
}
iter = toTop.begin();
while( iter != toTop.end() )
{
a2dCanvasObjectList::value_type obj = *iter;
push_back( obj );
iter++;
}
return did;
}
--
Unclassified
-------------------------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems? Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >> http://get.splunk.com/
_______________________________________________
Wxart2d-users_dev mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/wxart2d-users_dev