Fix dataload stupidities
svn path=/trunk/netsurf/; revision=2925
This commit is contained in:
parent
3e0c02e8e5
commit
b5274724ed
|
@ -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);
|
||||
|
|
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue