summaryrefslogtreecommitdiffstats
path: root/src/sp-shape.cpp
diff options
context:
space:
mode:
authorbulia byak <buliabyak@gmail.com>2008-08-25 02:10:17 +0000
committerbuliabyak <buliabyak@users.sourceforge.net>2008-08-25 02:10:17 +0000
commitd9039286ecc5b533df6cd55a4152118688dbdd34 (patch)
treec5ba39cc0acc764c21c4352e3861571a980fee47 /src/sp-shape.cpp
parentwhitespace (diff)
downloadinkscape-d9039286ecc5b533df6cd55a4152118688dbdd34.tar.gz
inkscape-d9039286ecc5b533df6cd55a4152118688dbdd34.zip
fix per SVG spec: bbox for paint servers must be exclusive of a stroke width etc., ie be geometric
(bzr r6714)
Diffstat (limited to 'src/sp-shape.cpp')
-rw-r--r--src/sp-shape.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/sp-shape.cpp b/src/sp-shape.cpp
index 93c58b16a..e22f8b785 100644
--- a/src/sp-shape.cpp
+++ b/src/sp-shape.cpp
@@ -272,7 +272,7 @@ sp_shape_update (SPObject *object, SPCtx *ctx, unsigned int flags)
if (flags & (SP_OBJECT_MODIFIED_FLAG | SP_OBJECT_PARENT_MODIFIED_FLAG)) {
/* This is suboptimal, because changing parent style schedules recalculation */
/* But on the other hand - how can we know that parent does not tie style and transform */
- boost::optional<NR::Rect> paintbox = SP_ITEM(object)->getBounds(NR::identity());
+ boost::optional<NR::Rect> paintbox = SP_ITEM(object)->getBounds(NR::identity(), SPItem::GEOMETRIC_BBOX);
for (SPItemView *v = SP_ITEM (shape)->display; v != NULL; v = v->next) {
NRArenaShape * const s = NR_ARENA_SHAPE(v->arenaitem);
if (flags & SP_OBJECT_MODIFIED_FLAG) {