From: kiirala Date: Mon, 8 Oct 2007 20:41:23 +0000 (+0000) Subject: Removed some unnecessarry bounding box updates in sp-item.cpp X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=d5de1166ca66f771fdb6071c3a2ff8444f55ac90;p=inkscape.git Removed some unnecessarry bounding box updates in sp-item.cpp --- diff --git a/src/sp-item.cpp b/src/sp-item.cpp index 8f91c97e6..e52042e35 100644 --- a/src/sp-item.cpp +++ b/src/sp-item.cpp @@ -623,11 +623,17 @@ sp_item_update(SPObject *object, SPCtx *ctx, guint flags) } } - if (item->display && item->display->arenaitem) { + /* Update bounding box data used by filters */ + if (item->style->filter.set && item->display) { NRRect item_bbox; sp_item_invoke_bbox(item, &item_bbox, NR::identity(), TRUE, SPItem::GEOMETRIC_BBOX); NR::Maybe i_bbox = item_bbox; - nr_arena_item_set_item_bbox(item->display->arenaitem, i_bbox); + + SPItemView *itemview = item->display; + do { + if (itemview->arenaitem) + nr_arena_item_set_item_bbox(itemview->arenaitem, i_bbox); + } while ( (itemview = itemview->next) ); } // Update libavoid with item geometry (for connector routing).