summaryrefslogtreecommitdiffstats
path: root/src/main.cpp
diff options
context:
space:
mode:
authorbulia byak <buliabyak@gmail.com>2008-04-16 06:43:33 +0000
committerbuliabyak <buliabyak@users.sourceforge.net>2008-04-16 06:43:33 +0000
commit9df8fb8fe0575f7a6e40f1afb83ca19fcfeb2da8 (patch)
tree497f6769f3086f866e8ee5bec063a1b71287b680 /src/main.cpp
parentCmake: Add simple CMakeLists.txt for 2geom and linking to inkscape (diff)
downloadinkscape-9df8fb8fe0575f7a6e40f1afb83ca19fcfeb2da8.tar.gz
inkscape-9df8fb8fe0575f7a6e40f1afb83ca19fcfeb2da8.zip
make sure --export-area-canvas works for pdf export too
(bzr r5455)
Diffstat (limited to 'src/main.cpp')
-rw-r--r--src/main.cpp6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/main.cpp b/src/main.cpp
index b5ed8305d..bf1662c31 100644
--- a/src/main.cpp
+++ b/src/main.cpp
@@ -1255,6 +1255,12 @@ static void do_export_pdf(SPDocument* doc, gchar const* uri, char const* mime)
(*i)->set_param_bool ("exportDrawing", FALSE);
}
+ if (sp_export_area_canvas) {
+ (*i)->set_param_bool ("exportCanvas", TRUE);
+ } else {
+ (*i)->set_param_bool ("exportCanvas", FALSE);
+ }
+
(*i)->save(doc, uri);
}