Index: Core/Common/src/Core.Common.Gui/Forms/ViewHost/DocumentViewController.cs =================================================================== diff -u -rf8f60a1f81812c31026cdb2bcda40e70cfc3d434 -r14eb03902afe5824f6b8df46a6653a05eab228b0 --- Core/Common/src/Core.Common.Gui/Forms/ViewHost/DocumentViewController.cs (.../DocumentViewController.cs) (revision f8f60a1f81812c31026cdb2bcda40e70cfc3d434) +++ Core/Common/src/Core.Common.Gui/Forms/ViewHost/DocumentViewController.cs (.../DocumentViewController.cs) (revision 14eb03902afe5824f6b8df46a6653a05eab228b0) @@ -117,7 +117,7 @@ return; } - foreach (var view in viewHost.DocumentViews.Where(view => ShouldRemoveViewForData(view, data))) + foreach (var view in viewHost.DocumentViews.Where(view => ShouldRemoveViewForData(view, data)).ToArray()) { viewHost.Remove(view); }