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

Commit e004224

Browse files
committed
Fix #19
1 parent 68f9380 commit e004224

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

UI/MainWindow.xaml.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -201,7 +201,7 @@ private void DockingManager_ActiveContentChanged(object sender, EventArgs e)
201201

202202
private void DockingManager_DocumentClosing(object sender, Xceed.Wpf.AvalonDock.DocumentClosingEventArgs e)
203203
{
204-
((EditorElement) e.Document.Content).Close();
204+
(e.Document.Content as EditorElement)?.Close();
205205
UpdateWindowTitle();
206206
}
207207

0 commit comments

Comments
 (0)