Commit 9ca2ade0 authored by Boudewijn Rempt's avatar Boudewijn Rempt

Fix negative array index write

CID:35124
parent c526efeb
......@@ -321,7 +321,9 @@ void KoPathSegment::Private::deCasteljau(qreal t, QPointF *p1, QPointF *p2, QPoi
q[1] = first->controlPoint2();
q[2] = second->controlPoint1();
}
q[deg] = second->point();
if (deg >= 0) {
q[deg] = second->point();
}
// points of the new segment after the split point
QPointF p[3];
......
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