diff options
| author | Jon A. Cruz <jon@joncruz.org> | 2011-07-16 07:42:39 +0000 |
|---|---|---|
| committer | Jon A. Cruz <jon@joncruz.org> | 2011-07-16 07:42:39 +0000 |
| commit | 2be2cf32db0668dc64512a98f6c2394152bd10cc (patch) | |
| tree | 8e25abb2f884e06692d861e6a1471440d6554946 /src/live_effects | |
| parent | added WITH_GNOME_VFS as an option for cmake (diff) | |
| download | inkscape-2be2cf32db0668dc64512a98f6c2394152bd10cc.tar.gz inkscape-2be2cf32db0668dc64512a98f6c2394152bd10cc.zip | |
Cleanup of oudated/redundant SP_ITEM() macro use.
(bzr r10461)
Diffstat (limited to 'src/live_effects')
| -rw-r--r-- | src/live_effects/lpe-knot.cpp | 2 | ||||
| -rw-r--r-- | src/live_effects/lpe-lattice.cpp | 3 | ||||
| -rw-r--r-- | src/live_effects/lpe-mirror_symmetry.cpp | 5 | ||||
| -rw-r--r-- | src/live_effects/lpegroupbbox.cpp | 6 |
4 files changed, 6 insertions, 10 deletions
diff --git a/src/live_effects/lpe-knot.cpp b/src/live_effects/lpe-knot.cpp index 522b3cdc6..b025debb3 100644 --- a/src/live_effects/lpe-knot.cpp +++ b/src/live_effects/lpe-knot.cpp @@ -517,7 +517,7 @@ void collectPathsAndWidths (SPLPEItem const *lpeitem, std::vector<Geom::Path> &p for (unsigned i=0; i<subpaths.size(); i++){ paths.push_back(subpaths[i]); //FIXME: do we have to be more carefull when trying to access stroke width? - stroke_widths.push_back(SP_ITEM(lpeitem)->style->stroke_width.computed); + stroke_widths.push_back(lpeitem->style->stroke_width.computed); } } } diff --git a/src/live_effects/lpe-lattice.cpp b/src/live_effects/lpe-lattice.cpp index 50ecdf04b..473469c8a 100644 --- a/src/live_effects/lpe-lattice.cpp +++ b/src/live_effects/lpe-lattice.cpp @@ -1,4 +1,3 @@ -#define INKSCAPE_LPE_LATTICE_CPP /** \file * LPE <lattice> implementation @@ -283,7 +282,7 @@ LPELattice::addHelperPathsImpl(SPLPEItem *lpeitem, SPDesktop *desktop) c->lineto(grid_point3); // TODO: factor this out (and remove the #include of desktop.h above) - SPCanvasItem *canvasitem = sp_nodepath_generate_helperpath(desktop, c, SP_ITEM(lpeitem), 0x009000ff); + SPCanvasItem *canvasitem = sp_nodepath_generate_helperpath(desktop, c, lpeitem, 0x009000ff); Inkscape::Display::TemporaryItem* tmpitem = desktop->add_temporary_canvasitem (canvasitem, 0); lpeitem->lpe_helperpaths.push_back(tmpitem); diff --git a/src/live_effects/lpe-mirror_symmetry.cpp b/src/live_effects/lpe-mirror_symmetry.cpp index dec8c9216..e64cd0905 100644 --- a/src/live_effects/lpe-mirror_symmetry.cpp +++ b/src/live_effects/lpe-mirror_symmetry.cpp @@ -45,9 +45,8 @@ LPEMirrorSymmetry::doOnApply (SPLPEItem *lpeitem) { using namespace Geom; - SPItem *item = SP_ITEM(lpeitem); - Geom::Affine t = item->i2d_affine(); - Geom::Rect bbox = *item->getBounds(t); // fixme: what happens if getBounds does not return a valid rect? + Geom::Affine t = lpeitem->i2d_affine(); + Geom::Rect bbox = *lpeitem->getBounds(t); // fixme: what happens if getBounds does not return a valid rect? Point A(bbox.left(), bbox.bottom()); Point B(bbox.left(), bbox.top()); diff --git a/src/live_effects/lpegroupbbox.cpp b/src/live_effects/lpegroupbbox.cpp index 2678509a4..382231378 100644 --- a/src/live_effects/lpegroupbbox.cpp +++ b/src/live_effects/lpegroupbbox.cpp @@ -26,17 +26,15 @@ void GroupBBoxEffect::original_bbox(SPLPEItem *lpeitem, bool absolute) { // Get item bounding box - SPItem* item = SP_ITEM(lpeitem); - Geom::Affine transform; if (absolute) { - transform = item->i2doc_affine(); + transform = lpeitem->i2doc_affine(); } else { transform = Geom::identity(); } - Geom::OptRect bbox = item->getBounds(transform, SPItem::GEOMETRIC_BBOX); + Geom::OptRect bbox = lpeitem->getBounds(transform, SPItem::GEOMETRIC_BBOX); if (bbox) { boundingbox_X = (*bbox)[Geom::X]; boundingbox_Y = (*bbox)[Geom::Y]; |
