diff options
Diffstat (limited to 'windirstat/Controls/TreeListControl.cpp')
-rw-r--r-- | windirstat/Controls/TreeListControl.cpp | 12 |
1 files changed, 1 insertions, 11 deletions
diff --git a/windirstat/Controls/TreeListControl.cpp b/windirstat/Controls/TreeListControl.cpp index 8271d1d..10cf005 100644 --- a/windirstat/Controls/TreeListControl.cpp +++ b/windirstat/Controls/TreeListControl.cpp @@ -264,17 +264,7 @@ void CTreeListItem::SetVisible(bool visible) if(visible) { ASSERT(!IsVisible()); - m_vi = new VISIBLEINFO; - if(GetParent() == NULL) - { - m_vi->indent = 0; - } - else - { - m_vi->indent = GetParent()->GetIndent() + 1; - } - m_vi->image = -1; - m_vi->isExpanded = false; + m_vi = new VISIBLEINFO((GetParent() == NULL) ? 0 : GetParent()->GetIndent() + 1); } else { |