Commit 3752639b authored by Thomas Zander's avatar Thomas Zander

Fix painter save/restore balance

svn path=/trunk/koffice/; revision=570422
parent 98051139
......@@ -80,7 +80,6 @@ void KoShapeContainer::paint(QPainter &painter, const KoViewConverter &converter
foreach (KoShape *shape, sorterdObjects) {
if(! shape->isVisible())
continue;
painter.save();
// TODO this is not perfect yet..
// QRectF clipRect(QPoint(0,0), size()); // old
// QPolygon clip = (myMatrix * shapeMatrix.inverted()).mapToPolygon(clipRect.toRect());
......@@ -88,6 +87,7 @@ void KoShapeContainer::paint(QPainter &painter, const KoViewConverter &converter
if(! childClipped(shape) )
continue;
painter.save();
QRectF clipRect(QPointF(0, 0), size());
clipRect = converter.documentToView(clipRect);
......
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