Ensure we get gadget from correct box.

This commit is contained in:
Michael Drake 2014-03-10 22:25:36 +00:00
parent 0397a7cab1
commit 9da93c23a4

View File

@ -1889,7 +1889,7 @@ static bool html_drop_file_at_point(struct content *c, int x, int y, char *file)
/* Handle the drop */
if (file_box) {
/* File dropped on file input */
html__set_file_gadget_filename(c, box->gadget, file);
html__set_file_gadget_filename(c, file_box->gadget, file);
} else {
/* File dropped on text input */