From 8417209743e184c46d7ec845928bfbee5f8d8d77 Mon Sep 17 00:00:00 2001 From: Diederik van Lierop Date: Sun, 8 Apr 2007 21:07:29 +0000 Subject: Changes to the selector tool, e.g. option to choose either APPROXIMATE_BBOX or GEOMETRIC_BBOX (bzr r2833) --- src/sp-item.cpp | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'src/sp-item.cpp') diff --git a/src/sp-item.cpp b/src/sp-item.cpp index ab1f6e242..5858f5d4e 100644 --- a/src/sp-item.cpp +++ b/src/sp-item.cpp @@ -674,9 +674,9 @@ NR::Maybe SPItem::getBounds(NR::Matrix const &transform, } void -sp_item_invoke_bbox(SPItem const *item, NRRect *bbox, NR::Matrix const &transform, unsigned const clear) +sp_item_invoke_bbox(SPItem const *item, NRRect *bbox, NR::Matrix const &transform, unsigned const clear, SPItem::BBoxType type) { - sp_item_invoke_bbox_full(item, bbox, transform, 0, clear); + sp_item_invoke_bbox_full(item, bbox, transform, type, clear); } /** Calls \a item's subclass' bounding box method; clips it by the bbox of clippath, if any; and @@ -743,19 +743,19 @@ unsigned sp_item_pos_in_parent(SPItem *item) } void -sp_item_bbox_desktop(SPItem *item, NRRect *bbox) +sp_item_bbox_desktop(SPItem *item, NRRect *bbox, SPItem::BBoxType type) { g_assert(item != NULL); g_assert(SP_IS_ITEM(item)); g_assert(bbox != NULL); - sp_item_invoke_bbox(item, bbox, sp_item_i2d_affine(item), TRUE); + sp_item_invoke_bbox(item, bbox, sp_item_i2d_affine(item), TRUE, type); } -NR::Maybe sp_item_bbox_desktop(SPItem *item) +NR::Maybe sp_item_bbox_desktop(SPItem *item, SPItem::BBoxType type) { NRRect ret; - sp_item_invoke_bbox(item, &ret, sp_item_i2d_affine(item), TRUE); + sp_item_invoke_bbox(item, &ret, sp_item_i2d_affine(item), TRUE, type); return ret.upgrade(); } -- cgit v1.2.3