From af2952fb27c17d1aaeacb017ddb4eeacfd88853c Mon Sep 17 00:00:00 2001 From: Ulf Jasper Date: Wed, 17 Dec 2014 21:42:23 +0100 Subject: [PATCH] Partially disabled previous change. * src/image.c (svg_load): Temporarily disabled filename thing for not-a-file case as it can cause crashs. --- src/ChangeLog | 7 +++++++ src/image.c | 4 +++- 2 files changed, 10 insertions(+), 1 deletion(-) diff --git a/src/ChangeLog b/src/ChangeLog index 1e10ffd8fcd..455ec1e8387 100644 --- a/src/ChangeLog +++ b/src/ChangeLog @@ -1,3 +1,10 @@ +2014-12-17 Ulf Jasper + + Partially disabled previous change. + + * image.c (svg_load): Temporarily disabled filename thing for + not-a-file case as it can cause crashs. + 2014-12-17 Ulf Jasper Fix problem with images referenced within svg files. (bug#19373) diff --git a/src/image.c b/src/image.c index 0bebd45d893..954d66424d1 100644 --- a/src/image.c +++ b/src/image.c @@ -8823,8 +8823,10 @@ 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), - SDATA(original_filename)); + NULL /* SDATA(original_filename) */); } return success_p; -- 2.39.2