Force browser window redraw after printing to restore screen layout.

svn path=/trunk/netsurf/; revision=10643
This commit is contained in:
Steve Fryatt 2010-07-15 21:06:10 +00:00
parent a8f41ec8a9
commit 9201eac26e
1 changed files with 3 additions and 1 deletions

View File

@ -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: