From bfadf014825099ca4021a083fca7a6a83d737331 Mon Sep 17 00:00:00 2001 From: Steve Fryatt Date: Sun, 6 Mar 2011 12:42:11 +0000 Subject: Test correct items before preparing selection save dialogue. svn path=/trunk/netsurf/; revision=11923 --- riscos/window.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'riscos') 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", -- cgit v1.2.3