diff options
| author | John Smith <john.smith7545@yahoo.com> | 2012-10-01 07:03:27 +0000 |
|---|---|---|
| committer | John Smith <john.smith7545@yahoo.com> | 2012-10-01 07:03:27 +0000 |
| commit | 6a101c3761dedff3281cf9a24f77fe1ce8ecb2d3 (patch) | |
| tree | 7246a30af2173170a8a33ba615a54f7992678c51 /src/main.cpp | |
| parent | Fix for 681625 : sort template names under File->New (diff) | |
| download | inkscape-6a101c3761dedff3281cf9a24f77fe1ce8ecb2d3.tar.gz inkscape-6a101c3761dedff3281cf9a24f77fe1ce8ecb2d3.zip | |
Fix for 1059132 : --export-pdf crashes with inkscape trunk
(bzr r11718)
Diffstat (limited to 'src/main.cpp')
| -rw-r--r-- | src/main.cpp | 10 |
1 files changed, 3 insertions, 7 deletions
diff --git a/src/main.cpp b/src/main.cpp index e3862589d..48d2e4de3 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -1557,25 +1557,21 @@ static void do_export_ps_pdf(SPDocument* doc, gchar const* uri, char const* mime } if (sp_export_area_drawing) { - (*i)->set_param_bool ("areaDrawing", TRUE); - } else { - (*i)->set_param_bool ("areaDrawing", FALSE); + (*i)->set_param_optiongroup ("area", "drawing"); } if (sp_export_area_page) { if (sp_export_eps) { g_warning ("EPS cannot have its bounding box extend beyond its content, so if your drawing is smaller than the page, --export-area-page will clip it to drawing."); } - (*i)->set_param_bool ("areaPage", TRUE); - } else { - (*i)->set_param_bool ("areaPage", FALSE); + (*i)->set_param_optiongroup ("area", "page"); } if (!sp_export_area_drawing && !sp_export_area_page && !sp_export_id) { // neither is set, set page as default for ps/pdf and drawing for eps if (sp_export_eps) { try { - (*i)->set_param_bool("areaDrawing", TRUE); + (*i)->set_param_optiongroup("area", "drawing"); } catch (...) {} } } |
