Commit 9ca2ade0 authored by Halla Rempt's avatar Halla Rempt
Browse files

Fix negative array index write

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