Skip to content

Commit 64b4c95

Browse files
committed
odb: fix dbChipInst::getBBox calculation
The transform includes the offset Signed-off-by: Matt Liberty <[email protected]>
1 parent 3daea17 commit 64b4c95

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

src/odb/src/db/dbChipInst.cpp

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -164,7 +164,6 @@ Rect dbChipInst::getBBox() const
164164
{
165165
_dbChipInst* _chipinst = (_dbChipInst*) this;
166166
Rect box = getMasterChip()->getBBox();
167-
box.moveTo(_chipinst->loc_.x(), _chipinst->loc_.y());
168167
getTransform().apply(box);
169168
return box;
170169
}
@@ -310,4 +309,4 @@ void dbChipInst::destroy(dbChipInst* chipInst)
310309
}
311310
// User Code End dbChipInstPublicMethods
312311
} // namespace odb
313-
// Generator Code End Cpp
312+
// Generator Code End Cpp

0 commit comments

Comments
 (0)