summaryrefslogtreecommitdiff
path: root/sc/source/filter/excel/xechart.cxx
diff options
context:
space:
mode:
authorTomaž Vajngerl <tomaz.vajngerl@collabora.com>2015-12-20 22:13:19 +0100
committerTomaž Vajngerl <tomaz.vajngerl@collabora.com>2015-12-20 22:21:07 +0100
commitc6b11cf681f8e8d131031ea7e5d19c4b6473503a (patch)
tree80e17e6f7cd14ca5efd44e452284d84864f89321 /sc/source/filter/excel/xechart.cxx
parent36984c75ccecc989ded8287647b6b10a72413cb7 (diff)
tdf#93949 ensure memory stream is properly flushed
Change-Id: I6d6a926f5d3fd62dd3b7b78a5721f6483b3b4ee7
Diffstat (limited to 'sc/source/filter/excel/xechart.cxx')
-rw-r--r--sc/source/filter/excel/xechart.cxx1
1 files changed, 1 insertions, 0 deletions
diff --git a/sc/source/filter/excel/xechart.cxx b/sc/source/filter/excel/xechart.cxx
index 83f2aa3e41d4..eac9364bd6dc 100644
--- a/sc/source/filter/excel/xechart.cxx
+++ b/sc/source/filter/excel/xechart.cxx
@@ -720,6 +720,7 @@ void XclExpChEscherFormat::WriteBody( XclExpStream& rStrm )
// write Escher property container via temporary memory stream
SvMemoryStream aMemStrm;
maData.mxEscherSet->Commit( aMemStrm );
+ aMemStrm.Flush();
aMemStrm.Seek( STREAM_SEEK_TO_BEGIN );
rStrm.CopyFromStream( aMemStrm );
}