Less flashing of the progress bar.

This commit is contained in:
Jeff Young 2021-08-15 22:20:29 +01:00
parent 56c85bd354
commit 235e0a430d
1 changed files with 2 additions and 1 deletions

View File

@ -90,8 +90,9 @@ bool DRC_TEST_PROVIDER_SLIVER_CHECKER::Run()
int widthTolerance = Millimeter2iu( ADVANCED_CFG::GetCfg().m_SliverWidthTolerance );
double angleTolerance = ADVANCED_CFG::GetCfg().m_SliverAngleTolerance;
int testLength = widthTolerance / ( 2 * sin( DEG2RAD( angleTolerance / 2 ) ) );
LSET copperLayers = m_drcEngine->GetBoard()->GetEnabledLayers() & LSET::AllCuMask();
for( PCB_LAYER_ID layer : LSET::AllCuMask().Seq() )
for( PCB_LAYER_ID layer : copperLayers.Seq() )
{
if( m_drcEngine->IsErrorLimitExceeded( DRCE_COPPER_SLIVER ) )
continue;