summaryrefslogtreecommitdiffstats
path: root/src/display/drawing-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/display/drawing-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/display/drawing-shape.cpp')
-rw-r--r--src/display/drawing-shape.cpp11
1 files changed, 2 insertions, 9 deletions
diff --git a/src/display/drawing-shape.cpp b/src/display/drawing-shape.cpp
index cd7b9150d..ac0ff2ccb 100644
--- a/src/display/drawing-shape.cpp
+++ b/src/display/drawing-shape.cpp
@@ -72,13 +72,6 @@ DrawingShape::setStyle(SPStyle *style)
_nrstyle.set(style);
}
-void
-DrawingShape::setPaintBox(Geom::Rect const &box)
-{
- _paintbox = box;
- _markForUpdate(STATE_ALL, false);
-}
-
unsigned
DrawingShape::_updateItem(Geom::IntRect const &area, UpdateContext const &ctx, unsigned flags, unsigned reset)
{
@@ -187,8 +180,8 @@ DrawingShape::_renderItem(DrawingContext &ct, Geom::IntRect const &area, unsigne
// update fill and stroke paints.
// this cannot be done during nr_arena_shape_update, because we need a Cairo context
// to render svg:pattern
- has_fill = _nrstyle.prepareFill(ct, _paintbox);
- has_stroke = _nrstyle.prepareStroke(ct, _paintbox);
+ has_fill = _nrstyle.prepareFill(ct, _item_bbox);
+ has_stroke = _nrstyle.prepareStroke(ct, _item_bbox);
has_stroke &= (_nrstyle.stroke_width != 0);
if (has_fill || has_stroke) {