summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: c583cdb)
raw | patch | inline | side by side (parent: c583cdb)
author | pjrm <pjrm@users.sourceforge.net> | |
Mon, 6 Apr 2009 21:45:54 +0000 (21:45 +0000) | ||
committer | pjrm <pjrm@users.sourceforge.net> | |
Mon, 6 Apr 2009 21:45:54 +0000 (21:45 +0000) |
src/extension/internal/emf-win32-inout.cpp | patch | blob | history |
diff --git a/src/extension/internal/emf-win32-inout.cpp b/src/extension/internal/emf-win32-inout.cpp
index bc7a3ac78724692f01605ff76be495d9ee24f864..f400a36497008c5da1080c66f3c81cd6f5e13b21 100644 (file)
mod = Inkscape::Extension::get_print(PRINT_EMF_WIN32);
oldconst = mod->get_param_string("destination");
oldoutput = g_strdup(oldconst);
- mod->set_param_string("destination", (gchar *)filename);
+ mod->set_param_string("destination", filename);
/* Start */
context.module = mod;
void
-EmfWin32::save (Inkscape::Extension::Output *mod, SPDocument *doc, const gchar *uri)
+EmfWin32::save(Inkscape::Extension::Output *mod, SPDocument *doc, gchar const *filename)
{
Inkscape::Extension::Extension * ext;
@@ -159,10 +159,7 @@ EmfWin32::save (Inkscape::Extension::Output *mod, SPDocument *doc, const gchar *
bool new_val = mod->get_param_bool("textToPath");
ext->set_param_bool("textToPath", new_val);
- gchar * final_name;
- final_name = g_strdup_printf("%s", uri);
- emf_print_document_to_file(doc, final_name);
- g_free(final_name);
+ emf_print_document_to_file(doc, filename);
ext->set_param_bool("textToPath", old_textToPath);