From 6f120338edb03bbdf7224f1b4d5560caf61bb002 Mon Sep 17 00:00:00 2001 From: Chris Young Date: Tue, 19 May 2009 07:23:56 +0000 Subject: Add ability to copy SVGs to the clipboard and save in IFF DR2D format. svn path=/trunk/netsurf/; revision=7523 --- amiga/download.c | 16 +++++++++++++--- 1 file changed, 13 insertions(+), 3 deletions(-) (limited to 'amiga/download.c') diff --git a/amiga/download.c b/amiga/download.c index fe9f370f5..5eeeccab1 100644 --- a/amiga/download.c +++ b/amiga/download.c @@ -31,6 +31,7 @@ #include "amiga/options.h" #include "amiga/save_complete.h" #include "amiga/bitmap.h" +#include "amiga/iff_dr2d.h" #include "content/fetch.h" @@ -368,10 +369,19 @@ void ami_drag_save(struct Window *win) case GUI_SAVE_OBJECT_NATIVE: { struct content *c = drag_save_data; - c->bitmap->url = c->url; - c->bitmap->title = c->title; AddPart(path,c->title,1024); - bitmap_save(c->bitmap,path,0); + if(c->bitmap) + { + c->bitmap->url = c->url; + c->bitmap->title = c->title; + bitmap_save(c->bitmap,path,0); + } +#ifdef WITH_NS_SVG + else if(c->type == CONTENT_SVG) + { + ami_save_svg(c,path); + } +#endif } break; } -- cgit v1.2.3