diff options
| author | Krzysztof Kosi??ski <tweenk.pl@gmail.com> | 2011-09-05 14:51:25 +0000 |
|---|---|---|
| committer | Krzysztof KosiĆski <tweenk.pl@gmail.com> | 2011-09-05 14:51:25 +0000 |
| commit | 8033f1dc89c36da5933ee04175e610f639d292f7 (patch) | |
| tree | f4604d4a0d0e042384f9a25a896438f1d4b5d8c7 /src/sp-item.cpp | |
| parent | Compute visual bounding box only when needed (diff) | |
| download | inkscape-8033f1dc89c36da5933ee04175e610f639d292f7.tar.gz inkscape-8033f1dc89c36da5933ee04175e610f639d292f7.zip | |
Fix incorrect marker bbox in previews
(bzr r10619)
Diffstat (limited to 'src/sp-item.cpp')
| -rw-r--r-- | src/sp-item.cpp | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/sp-item.cpp b/src/sp-item.cpp index 511daa5f1..df0394e38 100644 --- a/src/sp-item.cpp +++ b/src/sp-item.cpp @@ -562,9 +562,11 @@ void SPItem::sp_item_update(SPObject *object, SPCtx *ctx, guint flags) (* ((SPObjectClass *) (SPItemClass::static_parent_class))->update)(object, ctx, flags); } - if (flags & (SP_OBJECT_CHILD_MODIFIED_FLAG | SP_OBJECT_MODIFIED_FLAG | SP_OBJECT_STYLE_MODIFIED_FLAG)) { - item->bbox_valid = FALSE; + // any of the modifications defined in sp-object.h might change bbox, + // so we invalidate it unconditionally + item->bbox_valid = FALSE; + if (flags & (SP_OBJECT_CHILD_MODIFIED_FLAG | SP_OBJECT_MODIFIED_FLAG | SP_OBJECT_STYLE_MODIFIED_FLAG)) { if (flags & SP_OBJECT_MODIFIED_FLAG) { for (SPItemView *v = item->display; v != NULL; v = v->next) { v->arenaitem->setTransform(item->transform); |
