Commit e7417c83 authored by Jan Hambrecht's avatar Jan Hambrecht
Browse files

only paint a shape if its parent is visible too


svn path=/trunk/koffice/; revision=594316
parent 4a69de3d
......@@ -104,7 +104,7 @@ void KoShapeManager::paint( QPainter &painter, const KoViewConverter &converter,
const QRegion clipRegion = painter.clipRegion();
foreach ( KoShape * shape, sorterdShapes ) {
if(! shape->isVisible())
if(! shape->isVisible() || ( shape->parent() && ! shape->parent()->isVisible() ) )
continue;
if(shape->parent() != 0 && shape->parent()->childClipped(shape))
continue;
......
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