You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@openoffice.apache.org by af...@apache.org on 2012/06/13 11:03:09 UTC
svn commit: r1349689 - /incubator/ooo/trunk/main/vcl/source/gdi/gfxlink.cxx
Author: af
Date: Wed Jun 13 09:03:08 2012
New Revision: 1349689
URL: http://svn.apache.org/viewvc?rev=1349689&view=rev
Log:
#i119965# Fixed saving slides where temporary files of background images where deleted outside the office.
Patch by: Steve Yin
Review by: Andre Fischer
Modified:
incubator/ooo/trunk/main/vcl/source/gdi/gfxlink.cxx
Modified: incubator/ooo/trunk/main/vcl/source/gdi/gfxlink.cxx
URL: http://svn.apache.org/viewvc/incubator/ooo/trunk/main/vcl/source/gdi/gfxlink.cxx?rev=1349689&r1=1349688&r2=1349689&view=diff
==============================================================================
--- incubator/ooo/trunk/main/vcl/source/gdi/gfxlink.cxx (original)
+++ incubator/ooo/trunk/main/vcl/source/gdi/gfxlink.cxx Wed Jun 13 09:03:08 2012
@@ -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 )