summaryrefslogtreecommitdiff
path: root/vcl
diff options
context:
space:
mode:
authorAndre Fischer <af@apache.org>2012-06-13 08:03:08 +0000
committerCaolán McNamara <caolanm@redhat.com>2013-04-12 18:47:23 +0100
commitcbcdf190e86ed2874d8d5703ef4666f4074e7c7a (patch)
tree79d9ba6a1bec7f43771c4a11a336cfe331493e76 /vcl
parentd859e54534994d2e6f0c62e7711fa674406f8e22 (diff)
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 2809da479a141ad2c5c90624edf411ac2ec04597) Change-Id: I30318ef05408eb397cb26a0d433d265de90a6e74
Diffstat (limited to 'vcl')
-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 effa86cd81a0..04fc666b6c90 100644
--- a/vcl/source/gdi/gfxlink.cxx
+++ b/vcl/source/gdi/gfxlink.cxx
@@ -375,6 +375,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 )