summaryrefslogtreecommitdiffstats
path: root/src/sp-item.cpp
diff options
context:
space:
mode:
authorbulia byak <buliabyak@gmail.com>2007-04-06 06:14:04 +0000
committerbuliabyak <buliabyak@users.sourceforge.net>2007-04-06 06:14:04 +0000
commit6261613b04f7112c66dfded59ed6df2d939278de (patch)
treea8422e67ae2616dad879e8c4e22127a77a245b62 /src/sp-item.cpp
parentfix 1695287 (diff)
downloadinkscape-6261613b04f7112c66dfded59ed6df2d939278de.tar.gz
inkscape-6261613b04f7112c66dfded59ed6df2d939278de.zip
implement GEOMETRIC_BBOX
(bzr r2823)
Diffstat (limited to 'src/sp-item.cpp')
-rw-r--r--src/sp-item.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/sp-item.cpp b/src/sp-item.cpp
index 28d8ed6bc..ab1f6e242 100644
--- a/src/sp-item.cpp
+++ b/src/sp-item.cpp
@@ -704,8 +704,8 @@ sp_item_invoke_bbox_full(SPItem const *item, NRRect *bbox, NR::Matrix const &tra
((SPItemClass *) G_OBJECT_GET_CLASS(item))->bbox(item, &this_bbox, transform, flags);
}
- // crop the bbox by clip path, if any
- if (item->clip_ref->getObject()) {
+ // unless this is geometric bbox, crop the bbox by clip path, if any
+ if ((SPItem::BBoxType) flags != SPItem::GEOMETRIC_BBOX && item->clip_ref->getObject()) {
NRRect b;
sp_clippath_get_bbox(SP_CLIPPATH(item->clip_ref->getObject()), &b, transform, flags);
nr_rect_d_intersect (&this_bbox, &this_bbox, &b);