summaryrefslogtreecommitdiffstats
path: root/src/helper/png-write.cpp
diff options
context:
space:
mode:
authorJohan B. C. Engelen <jbc.engelen@swissonline.ch>2008-08-06 21:23:19 +0000
committerjohanengelen <johanengelen@users.sourceforge.net>2008-08-06 21:23:19 +0000
commit328d52847188a3c9f24f6ca693c47f0227c82c03 (patch)
tree9b77a0df25a40011883d9f1c7e70a1b80f1ef385 /src/helper/png-write.cpp
parent2Geom version of the path tests + some additional small changes. (diff)
downloadinkscape-328d52847188a3c9f24f6ca693c47f0227c82c03.tar.gz
inkscape-328d52847188a3c9f24f6ca693c47f0227c82c03.zip
src/helper 2geomified
(bzr r6579)
Diffstat (limited to 'src/helper/png-write.cpp')
-rw-r--r--src/helper/png-write.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/helper/png-write.cpp b/src/helper/png-write.cpp
index 69848e9a6..a08f9a939 100644
--- a/src/helper/png-write.cpp
+++ b/src/helper/png-write.cpp
@@ -342,8 +342,8 @@ sp_export_png_file(SPDocument *doc, gchar const *filename,
* (2) a[5] = -a[3] * y1
*/
- NR::Matrix const affine(NR::translate(-x0, -y0)
- * NR::scale(width / (x1 - x0),
+ Geom::Matrix const affine(Geom::Translate(-x0, -y0)
+ * Geom::Scale(width / (x1 - x0),
height / (y1 - y0)));
//SP_PRINT_MATRIX("SVG2PNG", &affine);
@@ -362,7 +362,7 @@ sp_export_png_file(SPDocument *doc, gchar const *filename,
/* Create ArenaItems and set transform */
ebp.root = sp_item_invoke_show(SP_ITEM(sp_document_root(doc)), arena, dkey, SP_ITEM_SHOW_DISPLAY);
- nr_arena_item_set_transform(NR_ARENA_ITEM(ebp.root), affine);
+ nr_arena_item_set_transform(NR_ARENA_ITEM(ebp.root), from_2geom(affine));
// We show all and then hide all items we don't want, instead of showing only requested items,
// because that would not work if the shown item references something in defs