Better layer handling for DRC markers.

Fixes https://gitlab.com/kicad/code/kicad/issues/10126
This commit is contained in:
Jeff Young
2021-12-26 15:06:12 +00:00
parent 5e4a704155
commit ab583a32f9
36 changed files with 123 additions and 107 deletions
@@ -475,7 +475,7 @@ bool WriteDRCReport( BOARD* aBoard, const wxString& aFileName, EDA_UNITS aUnits,
engine->SetProgressReporter( nullptr );
engine->SetViolationHandler(
[&]( const std::shared_ptr<DRC_ITEM>& aItem, wxPoint aPos )
[&]( const std::shared_ptr<DRC_ITEM>& aItem, wxPoint aPos, PCB_LAYER_ID aLayer )
{
if( aItem->GetErrorCode() == DRCE_MISSING_FOOTPRINT
|| aItem->GetErrorCode() == DRCE_DUPLICATE_FOOTPRINT