Also resolve worksheet textVar refs in DRC.
Fixes https://gitlab.com/kicad/code/kicad/issues/5506
This commit is contained in:
parent
16b85ed567
commit
f1f8f746f4
|
@ -89,6 +89,12 @@ bool DRC_TEXTVAR_TESTER::RunDRC( EDA_UNITS aUnits, BOARD& aBoard )
|
|||
if( m_worksheet )
|
||||
{
|
||||
wsItems.SetMilsToIUfactor( IU_PER_MILS );
|
||||
wsItems.SetSheetNumber( 1 );
|
||||
wsItems.SetSheetCount( 1 );
|
||||
wsItems.SetFileName( "dummyFilename" );
|
||||
wsItems.SetSheetName( "dummySheet" );
|
||||
wsItems.SetSheetLayer( "dummyLayer" );
|
||||
wsItems.SetProject( m_board->GetProject() );
|
||||
wsItems.BuildWorkSheetGraphicList( m_worksheet->GetPageInfo(),
|
||||
m_worksheet->GetTitleBlock() );
|
||||
|
||||
|
@ -108,8 +114,6 @@ bool DRC_TEXTVAR_TESTER::RunDRC( EDA_UNITS aUnits, BOARD& aBoard )
|
|||
}
|
||||
}
|
||||
|
||||
// JEY TODO: Test text vars in worksheet...
|
||||
|
||||
return success;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue