incubator-ooo-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From arie...@apache.org
Subject svn commit: r1390061 - /incubator/ooo/trunk/main/vcl/source/gdi/imagerepository.cxx
Date Tue, 25 Sep 2012 19:14:45 GMT
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;



Mime
View raw message