Commit b4b112c3 authored by Patrick Storz's avatar Patrick Storz 🦄

make --export-area-drawing work when exporting SVG

Fixed bugs:
  - https://bugs.launchpad.net/inkscape/+bug/1597921
  - https://bugs.launchpad.net/inkscape/+bug/1722844

(cherry picked from commit c169d8f3)
parent c9bc910c
......@@ -69,6 +69,7 @@
#include "document.h"
#include "layer-model.h"
#include "selection.h"
#include "selection-chemistry.h"
#include "sp-object.h"
#include "ui/interface.h"
#include "print.h"
......@@ -1258,6 +1259,9 @@ static int sp_process_file_list(GSList *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();
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment