mirror of
https://github.com/tumic0/QtPBFImagePlugin.git
synced 2024-11-23 19:25:55 +01: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…
Reference in New Issue
Block a user