summaryrefslogtreecommitdiffstats
path: root/src/sp-image.cpp
diff options
context:
space:
mode:
authorJohan B. C. Engelen <jbc.engelen@swissonline.ch>2008-08-12 22:42:21 +0000
committerjohanengelen <johanengelen@users.sourceforge.net>2008-08-12 22:42:21 +0000
commit5aef5b03d26910b9c0d34aeef986aa6609bbfc9b (patch)
tree6cd62d7a4d0da65315cf48b9b2c5aa248fbe8ae0 /src/sp-image.cpp
parentFix some regressions in the snapping of the selector tool (diff)
downloadinkscape-5aef5b03d26910b9c0d34aeef986aa6609bbfc9b.tar.gz
inkscape-5aef5b03d26910b9c0d34aeef986aa6609bbfc9b.zip
NR:: to Geom:: for most of src/extension/
(bzr r6612)
Diffstat (limited to 'src/sp-image.cpp')
-rw-r--r--src/sp-image.cpp14
1 files changed, 7 insertions, 7 deletions
diff --git a/src/sp-image.cpp b/src/sp-image.cpp
index 5a02517e2..f49812ac7 100644
--- a/src/sp-image.cpp
+++ b/src/sp-image.cpp
@@ -1068,18 +1068,18 @@ sp_image_print (SPItem *item, SPPrintContext *ctx)
rs = gdk_pixbuf_get_rowstride (image->pixbuf);
pixskip = gdk_pixbuf_get_n_channels (image->pixbuf) * gdk_pixbuf_get_bits_per_sample (image->pixbuf) / 8;
- NR::Matrix t;
+ Geom::Matrix t;
if (image->aspect_align == SP_ASPECT_NONE) {
/* fixme: (Lauris) */
- NR::translate tp = NR::translate(image->x.computed, image->y.computed);
- NR::scale s = NR::scale(image->width.computed, -image->height.computed);
- NR::translate ti = NR::translate(0.0, -1.0);
+ Geom::Translate tp (image->x.computed, image->y.computed);
+ Geom::Scale s (image->width.computed, -image->height.computed);
+ Geom::Translate ti (0.0, -1.0);
t = s * tp;
t = ti * t;
} else { // preserveAspectRatio
- NR::translate tp = NR::translate(image->viewx, image->viewy);
- NR::scale s = NR::scale(image->viewwidth, -image->viewheight);
- NR::translate ti = NR::translate(0.0, -1.0);
+ Geom::Translate tp (image->viewx, image->viewy);
+ Geom::Scale s (image->viewwidth, -image->viewheight);
+ Geom::Translate ti (0.0, -1.0);
t = s * tp;
t = ti * t;
}