diff options
| author | Johan B. C. Engelen <jbc.engelen@swissonline.ch> | 2008-08-01 20:07:58 +0000 |
|---|---|---|
| committer | johanengelen <johanengelen@users.sourceforge.net> | 2008-08-01 20:07:58 +0000 |
| commit | ec3dd49a1ccdf9da38c5605765d5698730e77c8b (patch) | |
| tree | 4ad6969a78832df79b813a2bc36978ada8f51b8a /src/live_effects/lpegroupbbox.cpp | |
| parent | update to latest 2geom (diff) | |
| download | inkscape-ec3dd49a1ccdf9da38c5605765d5698730e77c8b.tar.gz inkscape-ec3dd49a1ccdf9da38c5605765d5698730e77c8b.zip | |
SPItem::getBounds now always returns a Geom::Rect boundingbox.
(bzr r6517)
Diffstat (limited to 'src/live_effects/lpegroupbbox.cpp')
| -rw-r--r-- | src/live_effects/lpegroupbbox.cpp | 9 |
1 files changed, 3 insertions, 6 deletions
diff --git a/src/live_effects/lpegroupbbox.cpp b/src/live_effects/lpegroupbbox.cpp index 2ea839892..c0f1222f2 100644 --- a/src/live_effects/lpegroupbbox.cpp +++ b/src/live_effects/lpegroupbbox.cpp @@ -28,13 +28,10 @@ GroupBBoxEffect::original_bbox(SPLPEItem *lpeitem, bool absolute) else { transform = Geom::identity(); } - - NR::Maybe<NR::Rect> itemBBox = item->getBounds(from_2geom(transform), SPItem::GEOMETRIC_BBOX); - // NR to Geom glue - Geom::Rect geomBBox = Geom::Rect(itemBBox->min(), itemBBox->max()); - boundingbox_X = geomBBox[Geom::X]; - boundingbox_Y = geomBBox[Geom::Y]; + Geom::Rect itemBBox = item->getBounds(transform, SPItem::GEOMETRIC_BBOX); + boundingbox_X = itemBBox[Geom::X]; + boundingbox_Y = itemBBox[Geom::Y]; } } // namespace LivePathEffect |
