Author: arielch Date: Tue Sep 25 19:14:45 2012 New Revision: 1390061 URL: http://svn.apache.org/viewvc?rev=1390061&view=rev Log: Check empty BitmapEx
Modified: incubator/ooo/trunk/main/vcl/source/gdi/imagerepository.cxx Modified: incubator/ooo/trunk/main/vcl/source/gdi/imagerepository.cxx URL: http://svn.apache.org/viewvc/incubator/ooo/trunk/main/vcl/source/gdi/imagerepository.cxx?rev=1390061&r1=1390060&r2=1390061&view=diff ============================================================================== --- incubator/ooo/trunk/main/vcl/source/gdi/imagerepository.cxx (original) +++ incubator/ooo/trunk/main/vcl/source/gdi/imagerepository.cxx Tue Sep 25 19:14:45 2012 @@ -64,9 +64,11 @@ namespace vcl { PNGReader aReader( aStrm ); BitmapEx aBmp = aReader.Read(); - rImage = Image( aBmp ); - - return true; + if (!aBmp.IsEmpty) + { + rImage = Image( aBmp ); + return true; + } } return false;