Force browser window redraw after printing to restore screen layout.
svn path=/trunk/netsurf/; revision=10643
This commit is contained in:
parent
a8f41ec8a9
commit
9201eac26e
|
@ -731,12 +731,14 @@ bool print_document(struct gui_window *g, const char *filename)
|
|||
|
||||
rufl_invalidate_cache();
|
||||
|
||||
/* restore document layout */
|
||||
/* restore document layout and redraw browser window */
|
||||
if (content_get_type(h) == CONTENT_HTML)
|
||||
/* TODO: Front end code shouldn't see contents */
|
||||
layout_document(hlcache_handle_get_content(h),
|
||||
saved_width, saved_height);
|
||||
|
||||
gui_window_redraw_window(g);
|
||||
|
||||
return true;
|
||||
|
||||
error:
|
||||
|
|
Loading…
Reference in New Issue