summaryrefslogtreecommitdiffstats
path: root/src/selection-chemistry.cpp
diff options
context:
space:
mode:
authorMatthew Petroff <matthew@mpetroff.net>2013-09-15 19:26:40 +0000
committerMatthew Petroff <matthew@mpetroff.net>2013-09-15 19:26:40 +0000
commitd0f046b0aff8b4404c852990886f9afeca6d5c0f (patch)
tree9f03e5af0f2126a7d9cd7a7d11d61b5b99e16a3a /src/selection-chemistry.cpp
parentFix document unit change for disconnected connectors. (diff)
parentDutch translation update (diff)
downloadinkscape-d0f046b0aff8b4404c852990886f9afeca6d5c0f.tar.gz
inkscape-d0f046b0aff8b4404c852990886f9afeca6d5c0f.zip
Merge from trunk.
(bzr r12475.1.20)
Diffstat (limited to 'src/selection-chemistry.cpp')
-rw-r--r--src/selection-chemistry.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/selection-chemistry.cpp b/src/selection-chemistry.cpp
index 14e3462d7..552fc5218 100644
--- a/src/selection-chemistry.cpp
+++ b/src/selection-chemistry.cpp
@@ -3457,6 +3457,7 @@ void sp_selection_create_bitmap_copy(SPDesktop *desktop)
}
t = Geom::Scale(1, -1) * Geom::Translate(shift_x, shift_y) * eek.inverse(); /// @fixme hardcoded doc2dt transform?
+ // TODO: avoid roundtrip via file
// Do the export
sp_export_png_file(document, filepath,
bbox->min()[Geom::X], bbox->min()[Geom::Y],
@@ -3483,7 +3484,7 @@ void sp_selection_create_bitmap_copy(SPDesktop *desktop)
if (pb) {
// Create the repr for the image
Inkscape::XML::Node * repr = xml_doc->createElement("svg:image");
- sp_embed_image(repr, pb, "image/png");
+ sp_embed_image(repr, pb);
if (res == Inkscape::Util::Quantity::convert(1, "in", "px")) { // for default 90 dpi, snap it to pixel grid
sp_repr_set_svg_double(repr, "width", width);
sp_repr_set_svg_double(repr, "height", height);