Don't expect footprint viewer frame to have a DRC engine.

This commit is contained in:
Jeff Young 2020-09-16 01:10:16 +01:00
parent 7e35658c28
commit 43ab963650
1 changed files with 5 additions and 2 deletions

View File

@ -934,8 +934,11 @@ int BOARD_DESIGN_SETTINGS::GetBiggestClearanceValue()
{
DRC_CONSTRAINT constraint;
m_DRCEngine->QueryWorstConstraint( DRC_CONSTRAINT_TYPE_CLEARANCE, constraint,
DRCCQ_LARGEST_MINIMUM );
if( m_DRCEngine )
{
m_DRCEngine->QueryWorstConstraint( DRC_CONSTRAINT_TYPE_CLEARANCE, constraint,
DRCCQ_LARGEST_MINIMUM );
}
return constraint.Value().HasMin() ? constraint.Value().Min() : 0;
}