From 7d832b61433702b30739454650e09305a7350f07 Mon Sep 17 00:00:00 2001 From: Michael Becker Date: Mon, 19 Aug 2019 12:24:50 -0400 Subject: [PATCH] Ensure the stream is flushed - this is important for MemoryAccessor which allocates buffers larger than the actual data size --- CSharp/Libraries/UniversalEditor.Core/Document.cs | 1 + 1 file changed, 1 insertion(+) diff --git a/CSharp/Libraries/UniversalEditor.Core/Document.cs b/CSharp/Libraries/UniversalEditor.Core/Document.cs index 851062df..9ecf6df9 100644 --- a/CSharp/Libraries/UniversalEditor.Core/Document.cs +++ b/CSharp/Libraries/UniversalEditor.Core/Document.cs @@ -128,6 +128,7 @@ namespace UniversalEditor objectModel.Accessor = document.OutputAccessor; document.OutputAccessor.Open(); document.Save(); + document.OutputAccessor.Flush(); if (autoClose) document.OutputAccessor.Close(); return document; }