summaryrefslogtreecommitdiffstats
path: root/src/live_effects/lpegroupbbox.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/live_effects/lpegroupbbox.cpp')
-rw-r--r--src/live_effects/lpegroupbbox.cpp9
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