diff options
| author | Jabier Arraiza Cenoz <jabier.arraiza@marker.es> | 2016-11-06 20:11:34 +0000 |
|---|---|---|
| committer | jabiertxof <info@marker.es> | 2016-11-06 20:11:34 +0000 |
| commit | f947dd4e24cd82b3c4013eddb14fb1ac8f71f184 (patch) | |
| tree | c038e5125f9cf77ddb0dbd13d5fda103397689b5 /src/main.cpp | |
| parent | Fix a bug that allow to enter rotate mode with right click (diff) | |
| parent | Fix some bugs on pen/cil dropdown shapes (diff) | |
| download | inkscape-f947dd4e24cd82b3c4013eddb14fb1ac8f71f184.tar.gz inkscape-f947dd4e24cd82b3c4013eddb14fb1ac8f71f184.zip | |
Update to trunk
(bzr r15142.1.34)
Diffstat (limited to 'src/main.cpp')
| -rw-r--r-- | src/main.cpp | 10 |
1 files changed, 4 insertions, 6 deletions
diff --git a/src/main.cpp b/src/main.cpp index 0d5f35797..95764aea9 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -119,6 +119,7 @@ #include "verbs.h" #include "path-chemistry.h" +#include "object-set.h" #include "sp-text.h" #include "sp-flowtext.h" #include "text-editing.h" @@ -1161,16 +1162,13 @@ static int sp_process_file_list(GSList *fl) // "crop" the document to the specified object, cleaning as we go. SPObject *obj = doc->getObjectById(sp_export_id); - Geom::OptRect const bbox(SP_ITEM(obj)->visualBounds()); - - if (bbox) { - doc->fitToRect(*bbox, false); - } - if (sp_export_id_only) { // If -j then remove all other objects to complete the "crop" doc->getRoot()->cropToObject(obj); } + Inkscape::ObjectSet s(doc); + s.set(obj); + s.fitCanvas(false); } Inkscape::Extension::save(Inkscape::Extension::db.get("org.inkscape.output.svg.plain"), doc, sp_export_svg, false, |
