Commit 6c972269 authored by Jonathan Wilkes's avatar Jonathan Wilkes
Browse files

fix early return in gui_drawimage_vis

parent 37dbc20e
...@@ -3644,13 +3644,12 @@ function gui_drawimage_vis(cid, x, y, obj, data, seqno, parent_tag) { ...@@ -3644,13 +3644,12 @@ function gui_drawimage_vis(cid, x, y, obj, data, seqno, parent_tag) {
image_container.appendChild(item); image_container.appendChild(item);
} }
frag.appendChild(image_container); frag.appendChild(image_container);
return frag;
// Hack to set correct width and height // Hack to set correct width and height
for (i = 0; i < len; i++) { for (i = 0; i < len; i++) {
img_size_setter(cid, obj_tag+i, pd_cache.get(obj)[i].type, img_size_setter(cid, obj_tag+i, pd_cache.get(obj)[i].type,
pd_cache.get(obj)[i].data); pd_cache.get(obj)[i].data);
} }
return frag;
}); });
} }
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment