Stop plugin_hack objects crashing when not embedded into a page

svn path=/trunk/netsurf/; revision=12763
This commit is contained in:
Chris Young 2011-09-06 21:03:36 +00:00
parent 0f40fbae49
commit 8f451932d1

View File

@ -181,8 +181,11 @@ void amiga_plugin_hack_open(struct content *c, struct browser_window *bw,
{
LOG(("amiga_plugin_hack_open %s", content__get_url(c)));
c->width = box->width;
c->height = box->height;
if(c && box)
{
c->width = box->width;
c->height = box->height;
}
return;
}