mirror of https://github.com/KLayout/klayout.git
Fixed a DXF reader issue: should not generate degenerated paths for SPLINE entities
This commit is contained in:
parent
0cae7b0f93
commit
4701f3884e
|
|
@ -1805,7 +1805,10 @@ DXFReader::read_entities (db::Layout &layout, db::Cell &cell, const db::DVector
|
||||||
std::list<db::DPoint>::const_iterator ii = i;
|
std::list<db::DPoint>::const_iterator ii = i;
|
||||||
++ii;
|
++ii;
|
||||||
while (ii != new_points.end ()) {
|
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;
|
++i;
|
||||||
++ii;
|
++ii;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Binary file not shown.
Binary file not shown.
Loading…
Reference in New Issue