Commit 4e0f20d3 authored by Jan Hambrecht's avatar Jan Hambrecht

fix adding default connection points


svn path=/trunk/koffice/; revision=991595
parent 12b0af75
......@@ -85,6 +85,10 @@ KoShapePrivate::KoShapePrivate(KoShape *shape)
detectCollision(false),
protectContent(false)
{
connectors.append(QPointF(0.5, 0.0));
connectors.append(QPointF(1.0, 0.5));
connectors.append(QPointF(0.5, 1.0));
connectors.append(QPointF(0.0, 0.5));
}
KoShapePrivate::~KoShapePrivate()
......@@ -120,12 +124,6 @@ void KoShapePrivate::shapeChanged(KoShape::ChangeType type)
KoShape::KoShape()
: d_ptr(new KoShapePrivate(this))
{
Q_D(KoShape);
d->connectors.append(QPointF(0.5, 0.0));
d->connectors.append(QPointF(1.0, 0.5));
d->connectors.append(QPointF(0.5, 1.0));
d->connectors.append(QPointF(0.0, 0.5));
notifyChanged();
}
......
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