Skip to content

Commit

Permalink
Merge pull request rubberduck-vba#4689 from machthree/fix#3831
Browse files Browse the repository at this point in the history
The test explorer view throws on shutdown rubberduck-vba#4685
  • Loading branch information
bclothier authored Jan 3, 2019
2 parents f105933 + 11edee8 commit 1d11646
Showing 1 changed file with 7 additions and 4 deletions.
11 changes: 7 additions & 4 deletions Rubberduck.Core/UI/UnitTesting/TestExplorerControl.xaml.cs
Original file line number Diff line number Diff line change
Expand Up @@ -85,11 +85,14 @@ private void ResultsGroupingGrid_IsVisibleChanged(object sender, System.Windows.
_newGroupingGrid = groupingGrid;
else
{
// copy column widths from previously visible grouping grid to ensure widths are consistent
for (int columnIndex = 0; columnIndex < groupingGrid.Columns.Count; columnIndex++)
if (!(_newGroupingGrid is null))
{
// copy column widths from current now hidden columns to the new visible columns
_newGroupingGrid.Columns[columnIndex].Width = groupingGrid.Columns[columnIndex].Width;
// copy column widths from previously visible grouping grid to ensure widths are consistent
for (int columnIndex = 0; columnIndex < groupingGrid.Columns.Count; columnIndex++)
{
// copy column widths from current now hidden columns to the new visible columns
_newGroupingGrid.Columns[columnIndex].Width = groupingGrid.Columns[columnIndex].Width;
}
}
}
}
Expand Down

0 comments on commit 1d11646

Please sign in to comment.