7
mirror of https://gitlab.com/kicad/code/kicad.git synced 2025-04-21 08:41:41 +00:00

Fixed severity ERC local and global labels

Fixes https://gitlab.com/kicad/code/kicad/-/issues/18814
This commit is contained in:
Jan Wichmann 2025-01-05 22:10:47 +00:00 committed by Jon Evans
parent 3f7e459d62
commit 473b43994c

View File

@ -1841,13 +1841,19 @@ void ERC_TESTER::RunTests( DS_PROXY_VIEW_ITEM* aDrawingSheet, SCH_EDIT_FRAME* aE
// using case insensitive comparisons)
if( m_settings.IsTestEnabled( ERCE_SIMILAR_LABELS )
|| m_settings.IsTestEnabled( ERCE_SIMILAR_POWER )
|| m_settings.IsTestEnabled( ERCE_SIMILAR_LABEL_AND_POWER )
|| m_settings.IsTestEnabled( ERCE_SAME_LOCAL_GLOBAL_LABEL ) )
|| m_settings.IsTestEnabled( ERCE_SIMILAR_LABEL_AND_POWER ) )
{
if( aProgressReporter )
aProgressReporter->AdvancePhase( _( "Checking labels..." ) );
aProgressReporter->AdvancePhase( _( "Checking similar labels..." ) );
TestSimilarLabels();
}
if( m_settings.IsTestEnabled( ERCE_SAME_LOCAL_GLOBAL_LABEL ) )
{
if( aProgressReporter )
aProgressReporter->AdvancePhase( _( "Checking local and global labels..." ) );
TestSameLocalGlobalLabel();
}