Fix dataload stupidities

svn path=/trunk/netsurf/; revision=2925
This commit is contained in:
John Mark Bell 2006-09-07 09:44:50 +00:00
parent 3e0c02e8e5
commit b5274724ed
2 changed files with 5 additions and 3 deletions

View File

@ -1369,10 +1369,12 @@ void ro_msg_dataload(wimp_message *message)
g = ro_gui_window_lookup(message->data.data_xfer.w);
if (g) {
while (g->bw->parent)
g = g->bw->parent->window;
if (ro_gui_window_dataload(g, message))
return;
/* Get top-level window for loading into */
while (g->bw->parent)
g = g->bw->parent->window;
}
else {
g = ro_gui_toolbar_lookup(message->data.data_xfer.w);

View File

@ -2719,7 +2719,7 @@ bool ro_gui_window_dataload(struct gui_window *g, wimp_message *message)
return false;
if (!ro_gui_window_to_window_pos(g, message->data.data_xfer.pos.x,
message->data.data_xfer.pos.x, &pos))
message->data.data_xfer.pos.y, &pos))
return false;
content = bw->current_content;