diff options
author | Ariel Constenla-Haile <arielch@apache.org> | 2012-09-25 18:14:45 +0000 |
---|---|---|
committer | Ariel Constenla-Haile <arielch@apache.org> | 2012-09-25 18:14:45 +0000 |
commit | 9992b8f95ade916737f0c24f56fbb4c93b70cf13 (patch) | |
tree | 85bb54b3fd5114ea13d2e9d4dd44429849c65b99 /vcl | |
parent | 32d3b71d134afd85daf01196cdd7a56332719487 (diff) |
Check empty BitmapEx
Notes
Notes:
ignore: aoo
Diffstat (limited to 'vcl')
-rw-r--r-- | vcl/source/gdi/imagerepository.cxx | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/vcl/source/gdi/imagerepository.cxx b/vcl/source/gdi/imagerepository.cxx index 56ebfbbfaaa7..e5e4e8a69e1e 100644 --- a/vcl/source/gdi/imagerepository.cxx +++ b/vcl/source/gdi/imagerepository.cxx @@ -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; |