Don't join between 2 same points
Joining 2 points with same x,y values causes assert in QTriangulatingStroker::normalVector(). Task-number: QTBUG-26528 Change-Id: I2494d7f362e13e41a82753f4bacf97ffbc249cf9 Reviewed-by: Kim M. Kalland <kim.kalland@nokia.com>
This commit is contained in:
parent
b8b79a0f37
commit
87ff2c830d
@ -231,8 +231,10 @@ void QTriangulatingStroker::process(const QVectorPath &path, const QPen &pen, co
|
||||
|| float(pts[0]) != float(pts[2]) || float(pts[1]) != float(pts[3])
|
||||
|| float(pts[2]) != float(pts[4]) || float(pts[3]) != float(pts[5]))
|
||||
{
|
||||
if (previousType != QPainterPath::MoveToElement)
|
||||
join(pts);
|
||||
if (float(m_cx) != float(pts[0]) || float(m_cy) != float(pts[1])) {
|
||||
if (previousType != QPainterPath::MoveToElement)
|
||||
join(pts);
|
||||
}
|
||||
cubicTo(pts);
|
||||
previousType = QPainterPath::CurveToElement;
|
||||
previousPts = pts + 4;
|
||||
|
Loading…
Reference in New Issue
Block a user