diff options
Diffstat (limited to 'vcl/source/gdi/imagerepository.cxx')
-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; |