From b73dbb746ba026573dd7fc67a0cdf5ac9a934d4e Mon Sep 17 00:00:00 2001 From: Eduard Braun Date: Sat, 14 Oct 2017 19:17:22 +0200 Subject: Support --export-area-page when using --export-id to export to SVG --- src/main.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'src') diff --git a/src/main.cpp b/src/main.cpp index c40337cbe..792c1182a 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -1143,7 +1143,9 @@ static int sp_process_file_list(std::vector fl) } Inkscape::ObjectSet s(doc); s.set(obj); - s.fitCanvas(sp_export_margin ? true : false); + if (!sp_export_area_page) { + s.fitCanvas(sp_export_margin ? true : false); + } } if (sp_export_svg) { Inkscape::Extension::save(Inkscape::Extension::db.get("org.inkscape.output.svg.plain"), doc, sp_export_svg, false, -- cgit v1.2.3