| 152 | } |
| 153 | |
| 154 | void CStatTreeItemBase::GetNextVisibleChild(StatTreeItemIterator& it) |
| 155 | { |
| 156 | if (m_flags & stCapChildren) { |
| 157 | if (m_visible_counter == 0) { |
| 158 | it = m_children.end(); |
| 159 | return; |
| 160 | } else { |
| 161 | --m_visible_counter; |
| 162 | } |
| 163 | } |
| 164 | if (it != m_children.end()) ++it; |
| 165 | while (it != m_children.end() && !(*it)->IsVisible()) ++it; |
| 166 | } |
| 167 | |
| 168 | // |
| 169 | // Anything below is only for core. |