Skip to content

Commit 3dc62ed

Browse files
authored
Merge pull request #8797 from gadfort/gui-handle-guides-bbox
gui: use guides when routing is not available for net bounding box
2 parents 5687e05 + 282c448 commit 3dc62ed

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

src/gui/src/dbDescriptors.cpp

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1002,6 +1002,13 @@ bool DbNetDescriptor::getBBox(const std::any& object, odb::Rect& bbox) const
10021002
has_box = true;
10031003
}
10041004
}
1005+
if (!has_box) {
1006+
// a wire bbox was not found, try using guides
1007+
for (odb::dbGuide* guide : net->getGuides()) {
1008+
bbox.merge(guide->getBox());
1009+
has_box = true;
1010+
}
1011+
}
10051012

10061013
for (auto inst_term : net->getITerms()) {
10071014
if (!inst_term->getInst()->getPlacementStatus().isPlaced()) {

0 commit comments

Comments
 (0)