summaryrefslogtreecommitdiffstats
path: root/src/object/sp-shape.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/object/sp-shape.cpp')
-rw-r--r--src/object/sp-shape.cpp5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/object/sp-shape.cpp b/src/object/sp-shape.cpp
index c186b176c..be68aae1f 100644
--- a/src/object/sp-shape.cpp
+++ b/src/object/sp-shape.cpp
@@ -467,7 +467,10 @@ Geom::OptRect SPShape::bbox(Geom::Affine const &transform, SPItem::BBoxType bbox
// the cache doesn't get called if the object is moved, so we need
// to compare the transformations as well.
bool cached = (bboxtype == SPItem::VISUAL_BBOX) ? bbox_vis_cache_is_valid : bbox_geom_cache_is_valid;
- if (cached && transform == bbox_transform_cache) {
+ if (transform != bbox_transform_cache) {
+ bbox_vis_cache_is_valid = false;
+ bbox_geom_cache_is_valid = false;
+ } else if (cached) {
return (bboxtype == SPItem::VISUAL_BBOX) ? bbox_vis_cache : bbox_geom_cache;
}