Commit 8af26bed authored by Thorsten Zachmann's avatar Thorsten Zachmann

o refactor to reuse code

svn path=/trunk/koffice/; revision=707219
parent c38803ce
......@@ -346,13 +346,7 @@ int KoShape::zIndex() const {
void KoShape::repaint() const {
if ( !d->shapeManagers.empty() )
{
QRectF rect(QPointF(0, 0), size() );
if(d->border) {
KoInsets insets;
d->border->borderInsets(this, insets);
rect.adjust(-insets.left, -insets.top, insets.right, insets.bottom);
}
rect = absoluteTransformation(0).mapRect(rect);
QRectF rect( boundingRect() );
foreach( KoShapeManager * manager, d->shapeManagers )
manager->repaint( rect, this, true );
}
......
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