Commit ae20004d authored by Inge Wallin's avatar Inge Wallin

Fix the issues from the review.

This should have been committed before but apparently I was too tired.
parent c66223a3
......@@ -616,8 +616,9 @@ QRectF KoShape::outlineRect() const
QPainterPath KoShape::shadowOutline() const
{
Q_D(const KoShape);
if (d->fill)
if (d->fill) {
return outline();
}
return QPainterPath();
}
......
......@@ -90,7 +90,6 @@ void KoShapeShadow::Private::paintShadow(KoShape *shape, QPainter &painter, cons
painter.setBrush(QBrush(color));
// Make sure the shadow has the same fill rule as the shape.
QPainterPath path(shape->outline());
KoPathShape * pathShape = dynamic_cast<KoPathShape*>(shape);
if (pathShape)
path.setFillRule(pathShape->fillRule());
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment