diff options
| author | Thomas Holder <thomas@thomas-holder.de> | 2019-07-27 14:40:29 +0000 |
|---|---|---|
| committer | Thomas Holder <thomas@thomas-holder.de> | 2019-07-27 14:40:29 +0000 |
| commit | 63203fb881bfce667a14b2bbb3ec2ee40a9adf77 (patch) | |
| tree | 86f322f2330dd9bd2f6719ffd7fd828bc67e4356 /src/helper/png-write.cpp | |
| parent | Crashfix for connectors avoid selected items (diff) | |
| download | inkscape-63203fb881bfce667a14b2bbb3ec2ee40a9adf77.tar.gz inkscape-63203fb881bfce667a14b2bbb3ec2ee40a9adf77.zip | |
Make doc2dt a document property
Closes #340
Diffstat (limited to 'src/helper/png-write.cpp')
| -rw-r--r-- | src/helper/png-write.cpp | 7 |
1 files changed, 1 insertions, 6 deletions
diff --git a/src/helper/png-write.cpp b/src/helper/png-write.cpp index 5fedc08ec..1f2150cf1 100644 --- a/src/helper/png-write.cpp +++ b/src/helper/png-write.cpp @@ -429,13 +429,8 @@ ExportResult sp_export_png_file(SPDocument *doc, gchar const *filename, doc->ensureUpToDate(); - Geom::Affine dt2doc; - if (SP_ACTIVE_DESKTOP) { - dt2doc = SP_ACTIVE_DESKTOP->dt2doc(); - } - /* Calculate translation by transforming to document coordinates (flipping Y)*/ - Geom::Point translation = -(area * dt2doc).min(); + Geom::Point translation = -(area * doc->dt2doc()).min(); /* This calculation is only valid when assumed that (x0,y0)= area.corner(0) and (x1,y1) = area.corner(2) * 1) a[0] * x0 + a[2] * y1 + a[4] = 0.0 |
