Browse Source

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

pull/16/head
Jeff Young 5 years ago
parent
commit
43ab963650
  1. 7
      pcbnew/board_design_settings.cpp

7
pcbnew/board_design_settings.cpp

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

Loading…
Cancel
Save