[project @ 2006-01-24 23:02:44 by rjw]

Stop failed decompression/loading from attempting to plot a NULL bitmap.

svn path=/import/netsurf/; revision=2026
This commit is contained in:
Richard Wilson 2006-01-24 23:02:44 +00:00
parent 15a14599db
commit 2b2b2ccf96

View File

@ -49,6 +49,11 @@ bool image_redraw(osspriteop_area *area, int x, int y, int req_width,
bool repeatx, bool repeaty, bool background, image_type type)
{
unsigned int tinct_options;
/* failed decompression/loading can result in no image being present */
if (!area)
return false;
osspriteop_id header = (osspriteop_id)
((char*) area + area->first);
req_width *= 2;