summaryrefslogtreecommitdiffstats
path: root/src/helper
diff options
context:
space:
mode:
authorThomas Holder <thomas@thomas-holder.de>2018-09-26 06:10:31 +0000
committerThomas Holder <thomas@thomas-holder.de>2018-09-26 06:10:31 +0000
commit5d6b743493293644cd1006c18fb974cde353dee3 (patch)
tree0fa55e4b0f4beb5915c4d99ca86bfab405a74768 /src/helper
parentFix #1787601 star stroke width broken (scaled by 3.78) (diff)
downloadinkscape-5d6b743493293644cd1006c18fb974cde353dee3.tar.gz
inkscape-5d6b743493293644cd1006c18fb974cde353dee3.zip
Fix PDF bitmap export (inverted y-axis)
https://bugs.launchpad.net/inkscape/+bug/1794298
Diffstat (limited to 'src/helper')
-rw-r--r--src/helper/pixbuf-ops.cpp14
1 files changed, 7 insertions, 7 deletions
diff --git a/src/helper/pixbuf-ops.cpp b/src/helper/pixbuf-ops.cpp
index 93ea8bc98..daada34c3 100644
--- a/src/helper/pixbuf-ops.cpp
+++ b/src/helper/pixbuf-ops.cpp
@@ -83,12 +83,12 @@ bool sp_export_jpg_file(SPDocument *doc, gchar const *filename,
/**
generates a bitmap from given items
the bitmap is stored in RAM and not written to file
- @param x0
- @param y0
- @param x1
- @param y1
- @param width
- @param height
+ @param x0 area left in document coordinates
+ @param y0 area top in document coordinates
+ @param x1 area right in document coordinates
+ @param y1 area bottom in document coordinates
+ @param width bitmap width in pixels
+ @param height bitmap height in pixels
@param xdpi
@param ydpi
@return the created GdkPixbuf structure or NULL if no memory is allocable
@@ -112,7 +112,7 @@ Inkscape::Pixbuf *sp_generate_internal_bitmap(SPDocument *doc, gchar const */*fi
Geom::Rect screen=Geom::Rect(Geom::Point(x0,y0), Geom::Point(x1, y1));
- Geom::Point origin = screen.min() * SP_ACTIVE_DESKTOP->doc2dt();
+ Geom::Point origin = screen.min();
Geom::Scale scale(Inkscape::Util::Quantity::convert(xdpi, "px", "in"), Inkscape::Util::Quantity::convert(ydpi, "px", "in"));
Geom::Affine affine = scale * Geom::Translate(-origin * scale);