Commit bc0078d7 authored by Thomas Zander's avatar Thomas Zander

Fix repainting with large-ish borders

svn path=/trunk/koffice/; revision=644526
parent 2ea6ee36
/* This file is part of the KDE project
Copyright (C) 2006 Casper Boemann Rasmussen <>
Copyright (C) 2006 Thomas Zander <>
Copyright (C) 2006-2007 Thomas Zander <>
Copyright (C) 2006-2007 Thorsten Zachmann <>
This library is free software; you can redistribute it and/or
......@@ -299,6 +299,11 @@ bool KoShape::hitTest( const QPointF &position ) const
QRectF KoShape::boundingRect() const
QRectF bb( QPointF(0, 0), size() );
if(d->border) {
KoInsets insets;
d->border->borderInsets(this, insets);
bb.adjust(-insets.left,, insets.right, insets.bottom);
return d->matrix.mapRect( bb );
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