Also resolve worksheet textVar refs in DRC.

Fixes https://gitlab.com/kicad/code/kicad/issues/5506
This commit is contained in:
Jeff Young 2020-09-04 21:52:15 +01:00
parent 16b85ed567
commit f1f8f746f4
1 changed files with 6 additions and 2 deletions

View File

@ -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;
}