Fixed a DXF reader issue: should not generate degenerated paths for SPLINE entities

This commit is contained in:
Matthias Koefferlein 2023-08-05 21:40:27 +02:00
parent 0cae7b0f93
commit 4701f3884e
3 changed files with 4 additions and 1 deletions

View File

@ -1805,7 +1805,10 @@ DXFReader::read_entities (db::Layout &layout, db::Cell &cell, const db::DVector
std::list<db::DPoint>::const_iterator ii = i;
++ii;
while (ii != new_points.end ()) {
edges.push_back (safe_from_double (db::DEdge (tt.trans (*i), tt.trans (*ii))));
db::Edge edge = safe_from_double (db::DEdge (tt.trans (*i), tt.trans (*ii)));
if (! edge.is_degenerate ()) {
edges.push_back (edge);
}
++i;
++ii;
}

Binary file not shown.

Binary file not shown.