From 5b5e15c8451c8ee059e9b790adb45fffdc33f886 Mon Sep 17 00:00:00 2001 From: Chris Young Date: Sun, 28 Mar 2010 22:11:30 +0000 Subject: Fix for new-cache svn path=/trunk/netsurf/; revision=10195 --- image/svg.c | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) (limited to 'image/svg.c') diff --git a/image/svg.c b/image/svg.c index 99c4241eb..d347a0d35 100644 --- a/image/svg.c +++ b/image/svg.c @@ -28,7 +28,7 @@ #include -#include "content/content.h" +#include "content/content_protected.h" #include "css/css.h" #include "desktop/plotters.h" #include "image/svg.h" @@ -63,10 +63,15 @@ no_memory: bool svg_convert(struct content *c, int w, int h) { + const char *source_data; + unsigned long source_size; + assert(c->data.svg.diagram); - svgtiny_parse(c->data.svg.diagram, c->source_data, c->source_size, - c->url, w, h); + source_data = content__get_source_data(c, &source_size); + + svgtiny_parse(c->data.svg.diagram, source_data, source_size, + content__get_url(c), w, h); c->width = c->data.svg.diagram->width; c->height = c->data.svg.diagram->height; -- cgit v1.2.3