Skip to content

Commit

Permalink
Fixing issue #59 as suggested in
Browse files Browse the repository at this point in the history
  • Loading branch information
Dirkster99 committed Jun 16, 2020
1 parent 27cfa85 commit 0ef1d85
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion source/Components/AvalonDock/DockingManager.cs
Original file line number Diff line number Diff line change
Expand Up @@ -2343,7 +2343,7 @@ private void Layout_ElementRemoved(object sender, LayoutElementEventArgs e)
private void Layout_ElementAdded(object sender, LayoutElementEventArgs e)
{
if (_suspendLayoutItemCreation) return;
foreach (var content in Layout.Descendents().OfType<LayoutContent>())
foreach (var content in Layout.Descendents().OfType<LayoutContent>().ToList())
{
if (content is LayoutDocument)
CreateDocumentLayoutItem(content as LayoutDocument);
Expand Down

0 comments on commit 0ef1d85

Please sign in to comment.