summaryrefslogtreecommitdiffstats
path: root/src/sp-shape.cpp
diff options
context:
space:
mode:
authorKrzysztof Kosi??ski <tweenk.pl@gmail.com>2011-08-25 17:39:31 +0000
committerKrzysztof Kosinski <tweenk.pl@gmail.com>2011-08-25 17:39:31 +0000
commitabe953dc63948d78532c0541a56e664dc386810a (patch)
tree869e86a76f9c120e71e786f8664306730565e237 /src/sp-shape.cpp
parentFilter background rendering now matches the SVG specification. (diff)
downloadinkscape-abe953dc63948d78532c0541a56e664dc386810a.tar.gz
inkscape-abe953dc63948d78532c0541a56e664dc386810a.zip
Remove duplicate bbox data from DrawingShape
(bzr r10347.1.38)
Diffstat (limited to 'src/sp-shape.cpp')
-rw-r--r--src/sp-shape.cpp8
1 files changed, 0 insertions, 8 deletions
diff --git a/src/sp-shape.cpp b/src/sp-shape.cpp
index eff0665af..0d1ac029e 100644
--- a/src/sp-shape.cpp
+++ b/src/sp-shape.cpp
@@ -256,15 +256,11 @@ void SPShape::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 */
- Geom::OptRect paintbox = SP_ITEM(object)->getBounds(Geom::identity(), SPItem::GEOMETRIC_BBOX);
for (SPItemView *v = shape->display; v != NULL; v = v->next) {
Inkscape::DrawingShape *sh = dynamic_cast<Inkscape::DrawingShape *>(v->arenaitem);
if (flags & SP_OBJECT_MODIFIED_FLAG) {
sh->setPath(shape->curve);
}
- if (paintbox) {
- sh->setPaintBox(*paintbox);
- }
}
}
@@ -860,10 +856,6 @@ Inkscape::DrawingItem * SPShape::sp_shape_show(SPItem *item, Inkscape::Drawing &
Inkscape::DrawingShape *s = new Inkscape::DrawingShape(drawing);
s->setStyle(object->style);
s->setPath(shape->curve);
- Geom::OptRect paintbox = item->getBounds(Geom::identity());
- if (paintbox) {
- s->setPaintBox(*paintbox);
- }
/* This stanza checks that an object's marker style agrees with
* the marker objects it has allocated. sp_shape_set_marker ensures