summaryrefslogtreecommitdiffstats
path: root/src/object/sp-clippath.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/object/sp-clippath.cpp')
-rw-r--r--src/object/sp-clippath.cpp6
1 files changed, 2 insertions, 4 deletions
diff --git a/src/object/sp-clippath.cpp b/src/object/sp-clippath.cpp
index 4f69bd026..4afbf7e51 100644
--- a/src/object/sp-clippath.cpp
+++ b/src/object/sp-clippath.cpp
@@ -238,14 +238,12 @@ void SPClipPath::setBBox(unsigned int key, Geom::OptRect const &bbox) {
Geom::OptRect SPClipPath::geometricBounds(Geom::Affine const &transform) {
Geom::OptRect bbox;
-
for (auto& i: children) {
if (SP_IS_ITEM(&i)) {
- Geom::OptRect tmp = SP_ITEM(&i)->geometricBounds(Geom::Affine(SP_ITEM(&i)->transform) * transform);
- bbox.unionWith(tmp);
+ Geom::OptRect tmp = SP_ITEM(&i)->geometricBounds(transform);
+ bbox.unionWith(tmp);
}
}
-
return bbox;
}