You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@openoffice.apache.org by ar...@apache.org on 2012/09/25 21:14:45 UTC
svn commit: r1390061 -
/incubator/ooo/trunk/main/vcl/source/gdi/imagerepository.cxx
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;