diff options
| author | Martin Owens <doctormo@gmail.com> | 2013-09-19 12:35:32 +0000 |
|---|---|---|
| committer | Martin Owens <doctormo@gmail.com> | 2013-09-19 12:35:32 +0000 |
| commit | 23b4c7fcb81ee195acb9bfd470723728f89bfc4a (patch) | |
| tree | 820a09b20afff98dddf38be7c13e8f5b40cc655f /src/sp-item.cpp | |
| parent | Fixing colors in libdepixelize integration output. (diff) | |
| download | inkscape-23b4c7fcb81ee195acb9bfd470723728f89bfc4a.tar.gz inkscape-23b4c7fcb81ee195acb9bfd470723728f89bfc4a.zip | |
Revert some agressive changes and allow a seperate filter bbox for FER, should be refactored at some point.
(bzr r12536)
Diffstat (limited to 'src/sp-item.cpp')
| -rw-r--r-- | src/sp-item.cpp | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/src/sp-item.cpp b/src/sp-item.cpp index 52ccdbdd4..e6991a1fa 100644 --- a/src/sp-item.cpp +++ b/src/sp-item.cpp @@ -601,6 +601,15 @@ void SPItem::update(SPCtx *ctx, guint flags) { } } } + /* Update bounding box data used by filters */ + if (item->style->filter.set && item->display) { + Geom::OptRect item_bbox = item->visualBounds(); + SPItemView *itemview = item->display; + do { + if (itemview->arenaitem) + itemview->arenaitem->setItemBounds(item_bbox); + } while ( (itemview = itemview->next) ); + } // Update libavoid with item geometry (for connector routing). if (item->avoidRef) @@ -1050,6 +1059,7 @@ Inkscape::DrawingItem *SPItem::invoke_show(Inkscape::Drawing &drawing, unsigned item_bbox = visualBounds(); } ai->setData(this); + ai->setItemBounds(item_bbox); } return ai; |
