Skip to content
This repository was archived by the owner on Sep 11, 2023. It is now read-only.

Commit de71b2b

Browse files
committed
Merge remote-tracking branch 'origin/#83_Editor_Dock_Crash' into development
2 parents 6bc68f1 + 582e4e8 commit de71b2b

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

UI/MainWindow.xaml.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -228,6 +228,7 @@ private void DockingPaneGroup_ChildrenTreeChanged(object sender, ChildrenTreeCha
228228
// Solution: Set the active LayoutDocumentPane to the first LayoutDocumentPaneGroup avilable child.
229229
if (e.Change == ChildrenTreeChange.DirectChildrenChanged
230230
&& !DockingPaneGroup.Children.Contains(DockingPane)
231+
&& DockingPaneGroup.Children.Count > 0
231232
&& DockingPaneGroup.Children[0] is LayoutDocumentPane pane)
232233
{
233234
DockingPane = pane;

0 commit comments

Comments
 (0)