summaryrefslogtreecommitdiffstats
path: root/src/extension
diff options
context:
space:
mode:
Diffstat (limited to 'src/extension')
-rw-r--r--src/extension/internal/latex-pstricks.cpp15
1 files changed, 5 insertions, 10 deletions
diff --git a/src/extension/internal/latex-pstricks.cpp b/src/extension/internal/latex-pstricks.cpp
index 4b8d926f9..72eeaed50 100644
--- a/src/extension/internal/latex-pstricks.cpp
+++ b/src/extension/internal/latex-pstricks.cpp
@@ -65,19 +65,14 @@ unsigned int PrintLatex::begin (Inkscape::Extension::Print *mod, SPDocument *doc
{
Inkscape::SVGOStringStream os;
int res;
- FILE *osf, *osp;
- const gchar * fn;
-
- os.setf(std::ios::fixed);
-
- fn = mod->get_param_string("destination");
-
- osf = NULL;
- osp = NULL;
-
+ FILE *osf = NULL;
+ const gchar * fn = NULL;
gsize bytesRead = 0;
gsize bytesWritten = 0;
GError* error = NULL;
+
+ os.setf(std::ios::fixed);
+ fn = mod->get_param_string("destination");
gchar* local_fn = g_filename_from_utf8( fn,
-1, &bytesRead, &bytesWritten, &error);
fn = local_fn;