From 271a2980355a409dea9f896a2997aedcff6c8a13 Mon Sep 17 00:00:00 2001 From: Nicolas Dufour Date: Wed, 4 Feb 2015 15:34:21 +0100 Subject: Fix for Bug #1417990 (Trunk: crash on export to PS/EPS/PDF via command line (rev >= 13880)). Fixed bugs: - https://launchpad.net/bugs/1417990 (bzr r13898) --- src/main.cpp | 12 ++++-------- 1 file changed, 4 insertions(+), 8 deletions(-) (limited to 'src/main.cpp') diff --git a/src/main.cpp b/src/main.cpp index 06c0d4873..15576109d 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -1722,15 +1722,11 @@ static int do_export_ps_pdf(SPDocument* doc, gchar const* uri, char const* mime) } if (sp_export_text_to_path) { - (*i)->set_param_bool("textToPath", TRUE); + (*i)->set_param_optiongroup("textToPath", "paths"); + } else if (sp_export_latex) { + (*i)->set_param_optiongroup("textToPath", "LaTeX"); } else { - (*i)->set_param_bool("textToPath", FALSE); - } - - if (sp_export_latex) { - (*i)->set_param_bool("textToLaTeX", TRUE); - } else { - (*i)->set_param_bool("textToLaTeX", FALSE); + (*i)->set_param_optiongroup("textToPath", "embed"); } if (sp_export_ignore_filters) { -- cgit v1.2.3