mirror of
https://github.com/tumic0/QtPBFImagePlugin.git
synced 2025-04-10 08:19:10 +02:00
Fixed line splitting algorithm
This commit is contained in:
parent
aaff1c0bdb
commit
038f4e7d64
@ -145,6 +145,8 @@ static QList<QPolygonF> polyLines(const QPainterPath &path, const QRectF &rect)
|
|||||||
|
|
||||||
if (lastIn) {
|
if (lastIn) {
|
||||||
QPointF p;
|
QPointF p;
|
||||||
|
if (line.isEmpty())
|
||||||
|
line.append(path.elementAt(i-1));
|
||||||
if (intersection(l, rect, &p))
|
if (intersection(l, rect, &p))
|
||||||
line.append(p);
|
line.append(p);
|
||||||
lines.append(line);
|
lines.append(line);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user