Commit 9759ad1d authored by Thomas Zander's avatar Thomas Zander

Don't draw shapes that are also drawn in the shapeManager

svn path=/trunk/koffice/; revision=568171
parent 9d1c3146
......@@ -84,15 +84,14 @@ void KoShapeContainer::paint(QPainter &painter, KoViewConverter &converter) {
// QPolygon clip = (myMatrix * shapeMatrix.inverted()).mapToPolygon(clipRect.toRect());
// painter.setClipRegion(QRegion(clip));
if( childClipped(shape) ) {
QRectF clipRect(QPointF(0, 0), size());
clipRect = converter.documentToView(clipRect);
if(! childClipped(shape) )
continue;
QRectF clipRect(QPointF(0, 0), size());
clipRect = converter.documentToView(clipRect);
QPolygon clip = myMatrix.mapToPolygon(clipRect.toRect());
clip.translate( (position() - converter.documentToView(position())).toPoint() );
painter.setClipRegion(QRegion(clip));
}
QPolygon clip = myMatrix.mapToPolygon(clipRect.toRect());
clip.translate( (position() - converter.documentToView(position())).toPoint() );
painter.setClipRegion(QRegion(clip));
//kDebug() << "rect: " << position() << endl;
//kDebug() << "polygon: " << clip.boundingRect() << endl;
//painter.drawPolygon(clip);
......
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