incubator-ooo-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From a.@apache.org
Subject svn commit: r1349689 - /incubator/ooo/trunk/main/vcl/source/gdi/gfxlink.cxx
Date Wed, 13 Jun 2012 09:03:09 GMT
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 )



Mime
View raw message