diff options
| author | Eduard Braun <eduard.braun2@gmx.de> | 2017-10-14 14:27:09 +0000 |
|---|---|---|
| committer | Eduard Braun <eduard.braun2@gmx.de> | 2017-10-14 20:41:17 +0000 |
| commit | c169d8f366f0765513e08e94057d1e0dc3872c73 (patch) | |
| tree | 3e160c6929571bc159aaf173ceee900fdad2c0e6 /src/main.cpp | |
| parent | Add note to use important in measure dialog (diff) | |
| download | inkscape-c169d8f366f0765513e08e94057d1e0dc3872c73.tar.gz inkscape-c169d8f366f0765513e08e94057d1e0dc3872c73.zip | |
make --export-area-drawing work when exporting SVG
Fixed bugs:
- https://bugs.launchpad.net/inkscape/+bug/1597921
- https://bugs.launchpad.net/inkscape/+bug/1722844
Diffstat (limited to 'src/main.cpp')
| -rw-r--r-- | src/main.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
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<gchar*> 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(); |
