There will be a segfault when making a DnD from the files pane to the
folders pane if the image has an extremely high aspect ratio - when
rescaled to icon size the pixbuf width or height may round to 0.
h = sh * DND_ICON_SIZE / sw;
}
- dest = gdk_pixbuf_scale_simple(pixbuf, w, h, GDK_INTERP_BILINEAR);
- pixbuf_draw_border(dest, w, h);
+ dest = gdk_pixbuf_scale_simple(pixbuf, MAX(1, w), MAX(1, h), GDK_INTERP_BILINEAR);
+ pixbuf_draw_border(dest, MAX(1, w), MAX(1, h));
if (items > 1)
{