mirror of
https://github.com/netsurf-browser/netsurf
synced 2024-12-24 21:16:50 +03:00
Stop plugin_hack objects crashing when not embedded into a page
svn path=/trunk/netsurf/; revision=12763
This commit is contained in:
parent
0f40fbae49
commit
8f451932d1
@ -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;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user