summaryrefslogtreecommitdiffstats
path: root/src/sp-shape.cpp
diff options
context:
space:
mode:
authorbulia byak <buliabyak@gmail.com>2006-04-05 19:28:53 +0000
committerbuliabyak <buliabyak@users.sourceforge.net>2006-04-05 19:28:53 +0000
commit4022e5db17d3cfb74182d573061fa6126db5ab2e (patch)
treeb26ba6a7198414bd7180251e3db52e47f3af340c /src/sp-shape.cpp
parentadd stroke to bbox for flowtext too (diff)
downloadinkscape-4022e5db17d3cfb74182d573061fa6126db5ab2e.tar.gz
inkscape-4022e5db17d3cfb74182d573061fa6126db5ab2e.zip
now sp_item_invoke_bbox_full does union of the item's bbox (after clippath cropping) with the box passed as parameter, instead of subclass bbox methods as before; this fixes a bug with bbox of a group containig a clipped item
(bzr r430)
Diffstat (limited to 'src/sp-shape.cpp')
-rw-r--r--src/sp-shape.cpp6
1 files changed, 2 insertions, 4 deletions
diff --git a/src/sp-shape.cpp b/src/sp-shape.cpp
index 2ae76ef2e..7366e533f 100644
--- a/src/sp-shape.cpp
+++ b/src/sp-shape.cpp
@@ -578,10 +578,8 @@ static void sp_shape_bbox(SPItem const *item, NRRect *bbox, NR::Matrix const &tr
}
}
- if ( fabs(cbbox.x1-cbbox.x0) > -0.00001 && fabs(cbbox.y1-cbbox.y0) > -0.00001 ) {
- NRRect tbbox=*bbox;
- nr_rect_d_union (bbox, &cbbox, &tbbox);
- }
+ // copy our bbox to the variable we're given
+ *bbox = cbbox;
}
}