Skip to content

Commit e844a0c

Browse files
committed
pad: return rect as obs when only one is available
Signed-off-by: Peter Gadfort <gadfort@zeroasic.com>
1 parent 1f20430 commit e844a0c

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

src/pad/src/PadPlacer.cpp

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -433,6 +433,10 @@ std::optional<odb::Polygon> PadPlacer::getMasterOutline(
433433
return std::nullopt;
434434
}
435435

436+
if (master_obs.size() == 1) {
437+
return odb::Polygon(master_obs.front());
438+
}
439+
436440
const auto overlaps = odb::Polygon::merge(master_obs);
437441
if (overlaps.size() == 1) {
438442
return overlaps.front();

0 commit comments

Comments
 (0)