From c169d8f366f0765513e08e94057d1e0dc3872c73 Mon Sep 17 00:00:00 2001 From: Eduard Braun Date: Sat, 14 Oct 2017 16:27:09 +0200 Subject: make --export-area-drawing work when exporting SVG Fixed bugs: - https://bugs.launchpad.net/inkscape/+bug/1597921 - https://bugs.launchpad.net/inkscape/+bug/1722844 --- src/main.cpp | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'src/main.cpp') diff --git a/src/main.cpp b/src/main.cpp index aec7d96a9..537605e37 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -59,6 +59,7 @@ #include "document.h" #include "layer-model.h" #include "selection.h" +#include "selection-chemistry.h" #include "ui/interface.h" #include "print.h" #include "color.h" @@ -1116,6 +1117,9 @@ static int sp_process_file_list(std::vector fl) sp_item_list_to_curves(items, selected, to_select); } + if(sp_export_area_drawing) { + fit_canvas_to_drawing(doc, false); + } if(sp_export_id) { doc->ensureUpToDate(); -- cgit v1.2.3