Commit ad46070e authored by Ulf Jasper's avatar Ulf Jasper
Browse files

Fixed problems with svg_load_image -- no more crashes (hopefully)

* src/image.c (svg_load): Watch out for nil value of current buffer's
filename.  Re-enable filename thing for not-a-file case.
parent af2952fb
2014-12-17 Ulf Jasper <ulf.jasper@web.de>
* image.c (svg_load): Watch out for nil value of current buffer's
filename. Re-enable filename thing for not-a-file case.
2014-12-17 Ulf Jasper <ulf.jasper@web.de>
 
Partially disabled previous change.
......
......@@ -8823,10 +8823,9 @@ svg_load (struct frame *f, struct image *img)
return 0;
}
original_filename = BVAR (current_buffer, filename);
/* FIXME: disabled the filename thing for the time being as it
can cause crashs. */
success_p = svg_load_image (f, img, SDATA (data), SBYTES (data),
NULL /* SDATA(original_filename) */);
NILP(original_filename) ?
NULL : SDATA(original_filename));
}
return success_p;
......
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