Kaydet (Commit) 2809da47 authored tarafından Andre Fischer's avatar Andre Fischer

#i119965# Fixed saving slides where temporary files of background images where…

#i119965# Fixed saving slides where temporary files of background images where deleted outside the office.

Patch by: Steve Yin
Review by: Andre Fischer
üst 00969d29
...@@ -438,6 +438,11 @@ sal_uInt8* ImpSwap::GetData() const ...@@ -438,6 +438,11 @@ sal_uInt8* ImpSwap::GetData() const
pData = new sal_uInt8[ mnDataSize ]; pData = new sal_uInt8[ mnDataSize ];
pIStm->Read( pData, mnDataSize ); pIStm->Read( pData, mnDataSize );
sal_Bool bError = ( ERRCODE_NONE != pIStm->GetError() ); sal_Bool bError = ( ERRCODE_NONE != pIStm->GetError() );
sal_Size nActReadSize = pIStm->Tell();
if (nActReadSize != mnDataSize)
{
bError = sal_True;
}
delete pIStm; delete pIStm;
if( bError ) if( bError )
......
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