Skip to content

Commit

Permalink
release stability fix
Browse files Browse the repository at this point in the history
  • Loading branch information
sergiye committed Nov 16, 2024
1 parent d30288e commit cf1aa8a
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions Aga.Controls/Tree/TreeViewAdv.cs
Original file line number Diff line number Diff line change
Expand Up @@ -1139,8 +1139,6 @@ private void _model_StructureChanged(object sender, TreePathEventArgs e)
UpdateSelection();
SmartFullUpdate();
}
//else
// throw new ArgumentException("Path not found");
}

private void RestoreExpandedNodes(TreeNodeAdv node, Dictionary<object, object> list)
Expand Down Expand Up @@ -1177,8 +1175,10 @@ private void _model_NodesRemoved(object sender, TreeModelEventArgs e)
int index = list[n];
if (index >= 0 && index <= parent.Nodes.Count)
parent.Nodes.RemoveAt(index);
#if DEBUG
else
throw new ArgumentOutOfRangeException("Index out of range");
#endif
}
}
else
Expand Down Expand Up @@ -1237,8 +1237,10 @@ private void ClearNodesSize(TreeModelEventArgs e, TreeNodeAdv parent)
TreeNodeAdv node = parent.Nodes[index];
node.Height = node.RightBounds = null;
}
#if DEBUG
else
throw new ArgumentOutOfRangeException("Index out of range");
#endif
}
}
else
Expand Down

0 comments on commit cf1aa8a

Please sign in to comment.