diff options
| author | Joshua L. Blocher <verbalshadow@gmail.com> | 2008-12-28 22:44:35 +0000 |
|---|---|---|
| committer | verbalshadow <verbalshadow@users.sourceforge.net> | 2008-12-28 22:44:35 +0000 |
| commit | 1e3ef71825fa122062b626937848539cbb62f0ca (patch) | |
| tree | 80c4099e25b93d910b580ebe681cdf11d8957d60 /src/sp-image.cpp | |
| parent | convert NR to Geom (diff) | |
| download | inkscape-1e3ef71825fa122062b626937848539cbb62f0ca.tar.gz inkscape-1e3ef71825fa122062b626937848539cbb62f0ca.zip | |
More NR ==> Geom changes
(bzr r7032)
Diffstat (limited to 'src/sp-image.cpp')
| -rw-r--r-- | src/sp-image.cpp | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/src/sp-image.cpp b/src/sp-image.cpp index be4d37909..75be3bea2 100644 --- a/src/sp-image.cpp +++ b/src/sp-image.cpp @@ -1326,11 +1326,11 @@ static void sp_image_snappoints(SPItem const *item, SnapPointsIter p, Inkscape:: double const y0 = image.y.computed; double const x1 = x0 + image.width.computed; double const y1 = y0 + image.height.computed; - NR::Matrix const i2d (sp_item_i2d_affine (item)); - *p = NR::Point(x0, y0) * i2d; - *p = NR::Point(x0, y1) * i2d; - *p = NR::Point(x1, y1) * i2d; - *p = NR::Point(x1, y0) * i2d; + Geom::Matrix const i2d (sp_item_i2d_affine (item)); + *p = Geom::Point(x0, y0) * i2d; + *p = Geom::Point(x0, y1) * i2d; + *p = Geom::Point(x1, y1) * i2d; + *p = Geom::Point(x1, y0) * i2d; } } @@ -1352,14 +1352,14 @@ sp_image_set_transform(SPItem *item, Geom::Matrix const &xform) Geom::Matrix ret(Geom::Matrix(xform).without_translation()); Geom::Point const scale(hypot(ret[0], ret[1]), hypot(ret[2], ret[3])); - if ( scale[NR::X] > MAGIC_EPSILON ) { + if ( scale[Geom::X] > MAGIC_EPSILON ) { ret[0] /= scale[Geom::X]; ret[1] /= scale[Geom::X]; } else { ret[0] = 1.0; ret[1] = 0.0; } - if ( scale[NR::Y] > MAGIC_EPSILON ) { + if ( scale[Geom::Y] > MAGIC_EPSILON ) { ret[2] /= scale[Geom::Y]; ret[3] /= scale[Geom::Y]; } else { @@ -1524,7 +1524,7 @@ sp_image_set_curve(SPImage *image) } } else { NRRect rect; - sp_image_bbox(image, &rect, NR::identity(), 0); + sp_image_bbox(image, &rect, Geom::identity(), 0); Geom::Rect rect2 = to_2geom(*rect.upgrade()); SPCurve *c = SPCurve::new_from_rect(rect2); |
