Fix a qa test issue related to pad hit test.

This commit is contained in:
jean-pierre charras 2018-05-23 09:17:35 +02:00
parent 8506cdf3ae
commit ca548809da
1 changed files with 4 additions and 0 deletions

View File

@ -72,6 +72,10 @@ class TestBoardClass(unittest.TestCase):
pad.SetSize(wxSizeMM(2.0, 3.0))
pad.SetPosition(wxPointMM(0,0))
#Update the footprint bounding box, because
#the new pad must be inside the bounding box to be located
module.CalculateBoundingBox()
# easy case
p1 = pcb.GetPad(wxPointMM(0,0))