summaryrefslogtreecommitdiff
path: root/image
diff options
context:
space:
mode:
authorMichael Drake <tlsa@netsurf-browser.org>2012-11-11 20:14:18 +0000
committerMichael Drake <tlsa@netsurf-browser.org>2012-11-11 20:14:18 +0000
commit8c60d38769b360742e520e288617c4ba1a4fea0f (patch)
treee99ee726671be738a7736947dee69b7ba39f2ce5 /image
parentc040fbc4cca119ba4dcaac866e0eb4c23b76c4c7 (diff)
downloadnetsurf-8c60d38769b360742e520e288617c4ba1a4fea0f.tar.gz
netsurf-8c60d38769b360742e520e288617c4ba1a4fea0f.tar.bz2
Can't clone a content that gets reflowed for a viewport size.
Diffstat (limited to 'image')
-rw-r--r--image/svg.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/image/svg.c b/image/svg.c
index 54a48083b..76be76ac2 100644
--- a/image/svg.c
+++ b/image/svg.c
@@ -138,6 +138,9 @@ static void svg_reformat(struct content *c, int width, int height)
svgtiny_parse(svg->diagram, source_data, source_size,
nsurl_access(content_get_url(c)),
width, height);
+
+ svg->current_width = width;
+ svg->current_height = height;
}
c->width = svg->diagram->width;
@@ -335,7 +338,7 @@ static const content_handler svg_content_handler = {
.redraw = svg_redraw,
.clone = svg_clone,
.type = svg_content_type,
- .no_share = false,
+ .no_share = true
};
static const char *svg_types[] = {