Fix: the position of a Pad is it's center. Not (0,0) ...
This commit is contained in:
parent
9c7770806c
commit
c5827877f6
|
@ -59,13 +59,13 @@ Pad* Pad::create(Net* net, const Layer* layer, const Box& boundingBox)
|
||||||
DbU::Unit Pad::getX() const
|
DbU::Unit Pad::getX() const
|
||||||
// *******************
|
// *******************
|
||||||
{
|
{
|
||||||
return 0;
|
return _boundingBox.getXCenter();
|
||||||
}
|
}
|
||||||
|
|
||||||
DbU::Unit Pad::getY() const
|
DbU::Unit Pad::getY() const
|
||||||
// *******************
|
// *******************
|
||||||
{
|
{
|
||||||
return 0;
|
return _boundingBox.getYCenter();
|
||||||
}
|
}
|
||||||
|
|
||||||
Box Pad::getBoundingBox() const
|
Box Pad::getBoundingBox() const
|
||||||
|
|
Loading…
Reference in New Issue