diff options
author | Michael Brauer <mib@openoffice.org> | 2001-04-12 11:39:31 +0000 |
---|---|---|
committer | Michael Brauer <mib@openoffice.org> | 2001-04-12 11:39:31 +0000 |
commit | 0e291bcfaefc94af1977d4c0fb3ef02d78dcf239 (patch) | |
tree | 0ae68beb5933a113416593c74962cbb64a611ea4 /sot/source | |
parent | 0e364b055ab6a254c1161fe5f54d69b8dbe9a4e3 (diff) |
seek stream to begin before reusing it
Diffstat (limited to 'sot/source')
-rw-r--r-- | sot/source/sdstor/ucbstorage.cxx | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/sot/source/sdstor/ucbstorage.cxx b/sot/source/sdstor/ucbstorage.cxx index 1963b58837b8..58dadeb42bea 100644 --- a/sot/source/sdstor/ucbstorage.cxx +++ b/sot/source/sdstor/ucbstorage.cxx @@ -1539,6 +1539,7 @@ BaseStorageStream* UCBStorage::OpenStream( const String& rEleName, StreamMode nM if ( !bIsWritable && ( nMode & STREAM_WRITE ) ) pElement->m_xStream->SwitchToWritable( nMode, bDirect ); // DBG_ASSERT( bDirect == pElement->m_xStream->m_bDirect, "Wrong DirectMode!" ); + pElement->m_xStream->m_pStream->Seek( 0 ); return new UCBStorageStream( pElement->m_xStream ); } } |