diff options
author | Steve Fryatt <steve@stevefryatt.org.uk> | 2011-03-06 12:42:11 +0000 |
---|---|---|
committer | Steve Fryatt <steve@stevefryatt.org.uk> | 2011-03-06 12:42:11 +0000 |
commit | bfadf014825099ca4021a083fca7a6a83d737331 (patch) | |
tree | f95d84b0efe8573ed766e8832d490c906576184e /riscos | |
parent | 28dc80a3a558b7ee49b40211eb8adbc7853212a6 (diff) | |
download | netsurf-bfadf014825099ca4021a083fca7a6a83d737331.tar.gz netsurf-bfadf014825099ca4021a083fca7a6a83d737331.tar.bz2 |
Test correct items before preparing selection save dialogue.
svn path=/trunk/netsurf/; revision=11923
Diffstat (limited to 'riscos')
-rw-r--r-- | riscos/window.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/riscos/window.c b/riscos/window.c index 752859eb0..562a1fb9c 100644 --- a/riscos/window.c +++ b/riscos/window.c @@ -2734,7 +2734,7 @@ void ro_gui_window_menu_warning(wimp_w w, wimp_i i, wimp_menu *menu, break; case BROWSER_SELECTION_SAVE: - if (h != NULL) + if (bw->sel != NULL && selection_defined(bw->sel)) ro_gui_save_prepare(GUI_SAVE_TEXT_SELECTION, NULL, bw->sel, NULL, NULL); break; @@ -3420,8 +3420,8 @@ bool ro_gui_window_dataload(struct gui_window *g, wimp_message *message) /* Redraw box. */ box_coords(file_box, &pos.x, &pos.y); - error = xwimp_force_redraw(bw->window->window, - pos.x * 2, -(pos.y + file_box->height) * 2, + error = xwimp_force_redraw(bw->window->window, + pos.x * 2, -(pos.y + file_box->height) * 2, (pos.x + file_box->width) * 2, -pos.y * 2); if (error) { LOG(("xwimp_force_redraw: 0x%x: %s", |