Kaydet (Commit) a0a35440 authored tarafından Tomaž Vajngerl's avatar Tomaž Vajngerl Kaydeden (comit) David Tardon

tdf#93949 ensure memory stream is properly flushed

Change-Id: I6d6a926f5d3fd62dd3b7b78a5721f6483b3b4ee7
(cherry picked from commit c6b11cf6)
Reviewed-on: https://gerrit.libreoffice.org/20842Tested-by: 's avatarJenkins <ci@libreoffice.org>
Reviewed-by: 's avatarDavid Tardon <dtardon@redhat.com>
Tested-by: 's avatarDavid Tardon <dtardon@redhat.com>
üst c28aad62
...@@ -720,6 +720,7 @@ void XclExpChEscherFormat::WriteBody( XclExpStream& rStrm ) ...@@ -720,6 +720,7 @@ void XclExpChEscherFormat::WriteBody( XclExpStream& rStrm )
// write Escher property container via temporary memory stream // write Escher property container via temporary memory stream
SvMemoryStream aMemStrm; SvMemoryStream aMemStrm;
maData.mxEscherSet->Commit( aMemStrm ); maData.mxEscherSet->Commit( aMemStrm );
aMemStrm.Flush();
aMemStrm.Seek( STREAM_SEEK_TO_BEGIN ); aMemStrm.Seek( STREAM_SEEK_TO_BEGIN );
rStrm.CopyFromStream( aMemStrm ); rStrm.CopyFromStream( aMemStrm );
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment