diff options
| author | Krzysztof Kosi??ski <tweenk.pl@gmail.com> | 2010-04-03 01:56:36 +0000 |
|---|---|---|
| committer | Krzysztof KosiĆski <tweenk.pl@gmail.com> | 2010-04-03 01:56:36 +0000 |
| commit | d12b9c9fa87c4fc4f7842e5d6512c4f17298cce7 (patch) | |
| tree | cdb8ffd82e49514e07101bc512f3344a63d0b596 /src/selection-chemistry.cpp | |
| parent | Fix command line invocation on Windows (LP #167455). (diff) | |
| download | inkscape-d12b9c9fa87c4fc4f7842e5d6512c4f17298cce7.tar.gz inkscape-d12b9c9fa87c4fc4f7842e5d6512c4f17298cce7.zip | |
Initial fix for the inverted coordinate system bug
(bzr r9281.1.1)
Diffstat (limited to 'src/selection-chemistry.cpp')
| -rw-r--r-- | src/selection-chemistry.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/selection-chemistry.cpp b/src/selection-chemistry.cpp index 730467ee5..7ac2e5471 100644 --- a/src/selection-chemistry.cpp +++ b/src/selection-chemistry.cpp @@ -2748,12 +2748,12 @@ sp_selection_create_bitmap_copy(SPDesktop *desktop) Geom::Matrix t; double shift_x = bbox.x0; - double shift_y = bbox.y1; + double shift_y = bbox.y0; if (res == PX_PER_IN) { // for default 90 dpi, snap it to pixel grid shift_x = round(shift_x); - shift_y = -round(-shift_y); // this gets correct rounding despite coordinate inversion, remove the negations when the inversion is gone + shift_y = round(shift_y); } - t = Geom::Scale(1, -1) * Geom::Translate(shift_x, shift_y) * eek.inverse(); + t = Geom::Translate(shift_x, shift_y) * eek.inverse(); // Do the export sp_export_png_file(document, filepath, |
