mirror of
https://github.com/netsurf-browser/netsurf
synced 2024-12-24 21:16:50 +03:00
Fix crash when attempting to dump non HTML content (Dobos D. Calin)
svn path=/trunk/netsurf/; revision=4065
This commit is contained in:
parent
62ca5e3e11
commit
421be3633e
@ -584,8 +584,15 @@ MENUHANDLER(save_box_tree)
|
||||
} else {
|
||||
struct browser_window *bw;
|
||||
bw = nsgtk_get_browser_window(gw->top_level);
|
||||
box_dump(fh, bw->current_content->data.html.layout->children,
|
||||
0);
|
||||
|
||||
if (bw->current_content &&
|
||||
bw->current_content->type ==
|
||||
CONTENT_HTML) {
|
||||
box_dump(fh,
|
||||
bw->current_content->data.html.layout,
|
||||
0);
|
||||
}
|
||||
|
||||
fclose(fh);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user