summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorNicolas Dufour <nicoduf@yahoo.fr>2015-02-04 14:34:21 +0000
committerJazzyNico <nicoduf@yahoo.fr>2015-02-04 14:34:21 +0000
commit271a2980355a409dea9f896a2997aedcff6c8a13 (patch)
tree2b38f25206aa61b19e277073c268dbe7b48ff995 /src
parentFix two instances of "Dead Initialization" found via Clang scan-build. (diff)
downloadinkscape-271a2980355a409dea9f896a2997aedcff6c8a13.tar.gz
inkscape-271a2980355a409dea9f896a2997aedcff6c8a13.zip
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)
Diffstat (limited to 'src')
-rw-r--r--src/main.cpp12
1 files changed, 4 insertions, 8 deletions
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) {