Commit 99012dac authored by Thomas Zander's avatar Thomas Zander

Make sure we always return a proper outline.

This fixes the case where the QPainterPath ended up being empty due to a zero-size rect being ignored.

svn path=/trunk/koffice/; revision=735448
parent b8472a2f
......@@ -363,7 +363,7 @@ void KoShape::update(const QRectF &shape) const {
const QPainterPath KoShape::outline() const {
QPainterPath path;
path.addRect(QRectF( QPointF(0, 0), size() ));
path.addRect(QRectF( QPointF(0, 0), QSizeF( qMax(d->size.width(), 0.0001), qMax(d->size.height(), 0.0001) ) ));
return path;
}
......
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