diff options
| author | bulia byak <buliabyak@gmail.com> | 2006-04-05 19:28:53 +0000 |
|---|---|---|
| committer | buliabyak <buliabyak@users.sourceforge.net> | 2006-04-05 19:28:53 +0000 |
| commit | 4022e5db17d3cfb74182d573061fa6126db5ab2e (patch) | |
| tree | b26ba6a7198414bd7180251e3db52e47f3af340c /src/sp-shape.cpp | |
| parent | add stroke to bbox for flowtext too (diff) | |
| download | inkscape-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.cpp | 6 |
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; } } |
