Fix crash where dummy edge doesn't have a valid parent.
This commit is contained in:
parent
c36080a250
commit
0c9d08249f
|
@ -501,6 +501,7 @@ void DRC::testPadClearances( BOARD_COMMIT& aCommit )
|
|||
m_clearanceSource = _( "board edge" );
|
||||
|
||||
static DRAWSEGMENT dummyEdge;
|
||||
dummyEdge.SetParent( m_pcb );
|
||||
dummyEdge.SetLayer( Edge_Cuts );
|
||||
|
||||
pad->GetRuleClearance( &dummyEdge, pad->GetLayer(), &minClearance, &m_clearanceSource );
|
||||
|
|
|
@ -496,6 +496,7 @@ void DRC::doTrackDrc( BOARD_COMMIT& aCommit, TRACK* aRefSeg, TRACKS::iterator aS
|
|||
m_clearanceSource = _( "board edge" );
|
||||
|
||||
static DRAWSEGMENT dummyEdge;
|
||||
dummyEdge.SetParent( m_pcb );
|
||||
dummyEdge.SetLayer( Edge_Cuts );
|
||||
|
||||
aRefSeg->GetRuleClearance( &dummyEdge, aRefSeg->GetLayer(), &minClearance,
|
||||
|
|
Loading…
Reference in New Issue