mirror of
https://github.com/qgis/QGIS.git
synced 2025-02-25 00:58:06 -05:00
fix nightly build (followup a57066a48d)
This commit is contained in:
parent
336fe99af1
commit
6c836f0e9d
@ -1799,19 +1799,18 @@ ControlNodeBin::draw( const ControlContext& context, bool newContext, int bin )
|
||||
|
||||
if ( _sortingEnabled && _sortByDistance )
|
||||
{
|
||||
for( ControlNodeCollection::iterator i = _controlNodes.begin(); i != _controlNodes.end(); )
|
||||
for( ControlNodeCollection::iterator i = _controlNodes.begin(); i != _controlNodes.end(); ++i )
|
||||
{
|
||||
ControlNode* node = i->second.get();
|
||||
if ( node->getNumParents() == 0 )
|
||||
{
|
||||
_renderNodes.erase( node );
|
||||
i = _controlNodes.erase( i );
|
||||
_controlNodes.erase( i );
|
||||
}
|
||||
else
|
||||
{
|
||||
ControlNode::PerViewData& nodeData = node->getData( context._view );
|
||||
byDepth.insert( ControlNodePair(nodeData._screenPos.z(), node) );
|
||||
++i;
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user