summaryrefslogtreecommitdiff
path: root/vcl/source/gdi
diff options
context:
space:
mode:
authorAndre Fischer <af@apache.org>2012-06-13 08:03:08 +0000
committerAndre Fischer <af@apache.org>2012-06-13 08:03:08 +0000
commit2809da479a141ad2c5c90624edf411ac2ec04597 (patch)
tree0c590a5a330147380943b14cb7ab641d183eb054 /vcl/source/gdi
parent00969d29b354467c659abe79541a4f5e7b92b0ef (diff)
#i119965# Fixed saving slides where temporary files of background images where deleted outside the office.
Patch by: Steve Yin Review by: Andre Fischer
Notes
Notes: merged as: cbcdf190e86ed2874d8d5703ef4666f4074e7c7a
Diffstat (limited to 'vcl/source/gdi')
-rw-r--r--vcl/source/gdi/gfxlink.cxx5
1 files changed, 5 insertions, 0 deletions
diff --git a/vcl/source/gdi/gfxlink.cxx b/vcl/source/gdi/gfxlink.cxx
index eaf371e3d18f..ed3a68669ecf 100644
--- a/vcl/source/gdi/gfxlink.cxx
+++ b/vcl/source/gdi/gfxlink.cxx
@@ -438,6 +438,11 @@ sal_uInt8* ImpSwap::GetData() const
pData = new sal_uInt8[ mnDataSize ];
pIStm->Read( pData, mnDataSize );
sal_Bool bError = ( ERRCODE_NONE != pIStm->GetError() );
+ sal_Size nActReadSize = pIStm->Tell();
+ if (nActReadSize != mnDataSize)
+ {
+ bError = sal_True;
+ }
delete pIStm;
if( bError )