Fix: the position of a Pad is it's center. Not (0,0) ...

This commit is contained in:
Jean-Paul Chaput 2023-07-24 14:23:30 +02:00
parent 9c7770806c
commit c5827877f6
1 changed files with 2 additions and 2 deletions

View File

@ -59,13 +59,13 @@ Pad* Pad::create(Net* net, const Layer* layer, const Box& boundingBox)
DbU::Unit Pad::getX() const
// *******************
{
return 0;
return _boundingBox.getXCenter();
}
DbU::Unit Pad::getY() const
// *******************
{
return 0;
return _boundingBox.getYCenter();
}
Box Pad::getBoundingBox() const