diff --git a/src/db/db/dbLayoutToNetlist.cc b/src/db/db/dbLayoutToNetlist.cc index a83234e2b..52637e829 100644 --- a/src/db/db/dbLayoutToNetlist.cc +++ b/src/db/db/dbLayoutToNetlist.cc @@ -1831,7 +1831,11 @@ LayoutToNetlist::get_shapes_of_net (db::cell_index_type ci, size_t cid, const st } } - if (npoly >= max_polygons) { + if (n == 0) { + + // nothing to do ... + + } else if (npoly >= max_polygons) { db::Box bbox;