From 4022e5db17d3cfb74182d573061fa6126db5ab2e Mon Sep 17 00:00:00 2001 From: bulia byak Date: Wed, 5 Apr 2006 19:28:53 +0000 Subject: 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) --- src/sp-shape.cpp | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) (limited to 'src/sp-shape.cpp') 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; } } -- cgit v1.2.3