diff --git a/src/textpathitem.cpp b/src/textpathitem.cpp index e1d7d74..0c27f20 100644 --- a/src/textpathitem.cpp +++ b/src/textpathitem.cpp @@ -145,6 +145,8 @@ static QList polyLines(const QPainterPath &path, const QRectF &rect) if (lastIn) { QPointF p; + if (line.isEmpty()) + line.append(path.elementAt(i-1)); if (intersection(l, rect, &p)) line.append(p); lines.append(line);