diff options
| author | Krzysztof Kosi??ski <tweenk.pl@gmail.com> | 2011-08-21 15:33:09 +0000 |
|---|---|---|
| committer | Krzysztof Kosinski <tweenk.pl@gmail.com> | 2011-08-21 15:33:09 +0000 |
| commit | 0fc028f7050c91bfdb1a50ba8cb6462b2bf03d57 (patch) | |
| tree | 1815a638b17050a590d36c2515121cf0d5dae129 /src/display/drawing-shape.cpp | |
| parent | Fix rendering glitches appearing when filtered, cached groups have (diff) | |
| download | inkscape-0fc028f7050c91bfdb1a50ba8cb6462b2bf03d57.tar.gz inkscape-0fc028f7050c91bfdb1a50ba8cb6462b2bf03d57.zip | |
Filter background rendering now matches the SVG specification.
(bzr r10347.1.37)
Diffstat (limited to 'src/display/drawing-shape.cpp')
| -rw-r--r-- | src/display/drawing-shape.cpp | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/src/display/drawing-shape.cpp b/src/display/drawing-shape.cpp index 1b201927f..cd7b9150d 100644 --- a/src/display/drawing-shape.cpp +++ b/src/display/drawing-shape.cpp @@ -157,11 +157,11 @@ DrawingShape::_updateItem(Geom::IntRect const &area, UpdateContext const &ctx, u return STATE_ALL; } -void -DrawingShape::_renderItem(DrawingContext &ct, Geom::IntRect const &area, unsigned flags) +unsigned +DrawingShape::_renderItem(DrawingContext &ct, Geom::IntRect const &area, unsigned flags, DrawingItem *stop_at) { - if (!_curve || !_style) return; - if (!area.intersects(_bbox)) return; // skip if not within bounding box + if (!_curve || !_style) return RENDER_OK; + if (!area.intersects(_bbox)) return RENDER_OK; // skip if not within bounding box bool outline = _drawing.outline(); @@ -208,8 +208,9 @@ DrawingShape::_renderItem(DrawingContext &ct, Geom::IntRect const &area, unsigne // marker rendering for (ChildrenList::iterator i = _children.begin(); i != _children.end(); ++i) { - i->render(ct, area, flags); + i->render(ct, area, flags, stop_at); } + return RENDER_OK; } void |
