From 038f4e7d645a2c138844bb4fb76f48cfac580b5c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Martin=20T=C5=AFma?= Date: Tue, 10 Oct 2023 08:16:20 +0200 Subject: [PATCH] Fixed line splitting algorithm --- src/textpathitem.cpp | 2 ++ 1 file changed, 2 insertions(+) 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);