From 515e332f61c75a51e5766f2f75404fed77b04e27 Mon Sep 17 00:00:00 2001 From: Michael Becker Date: Tue, 20 Oct 2020 20:57:57 -0400 Subject: [PATCH] sometimes we expect Editor.Document to be set --- Libraries/UniversalEditor.UserInterface/Pages/EditorPage.cs | 1 + 1 file changed, 1 insertion(+) diff --git a/Libraries/UniversalEditor.UserInterface/Pages/EditorPage.cs b/Libraries/UniversalEditor.UserInterface/Pages/EditorPage.cs index 65ef7cbc..444069c7 100644 --- a/Libraries/UniversalEditor.UserInterface/Pages/EditorPage.cs +++ b/Libraries/UniversalEditor.UserInterface/Pages/EditorPage.cs @@ -234,6 +234,7 @@ namespace UniversalEditor.UserInterface.Pages editor.ObjectModel = om; editor.DocumentEdited += editor_DocumentEdited; editor.Title = title; + editor.Document = Document; for (int j = 0; j < reditor.Views.Count; j++) { EditorView view = reditor.Views[j];