Kaydet (Commit) cbcdf190 authored tarafından Andre Fischer's avatar Andre Fischer Kaydeden (comit) Caolán McNamara

Resolves: #i119965# Fixed saving slides where temporary files...

of background images were deleted outside the office.

Patch by: Steve Yin
Review by: Andre Fischer
(cherry picked from commit 2809da47)

Change-Id: I30318ef05408eb397cb26a0d433d265de90a6e74
üst d859e545
...@@ -375,6 +375,11 @@ sal_uInt8* ImpSwap::GetData() const ...@@ -375,6 +375,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