From 1fc99dd2c0f456da2f4db672f7a7d062f13c4b9c Mon Sep 17 00:00:00 2001 From: Jeff Young Date: Sat, 5 Mar 2022 22:49:20 +0000 Subject: [PATCH] Don't call GetLayer() on a multi-layer object. --- pcbnew/drc/drc_test_provider_disallow.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pcbnew/drc/drc_test_provider_disallow.cpp b/pcbnew/drc/drc_test_provider_disallow.cpp index 768774ae13..9221348fb9 100644 --- a/pcbnew/drc/drc_test_provider_disallow.cpp +++ b/pcbnew/drc/drc_test_provider_disallow.cpp @@ -89,7 +89,7 @@ bool DRC_TEST_PROVIDER_DISALLOW::Run() drcItem->SetItems( item ); drcItem->SetViolatingRule( constraint.GetParentRule() ); - reportViolation( drcItem, item->GetPosition(), item->GetLayer() ); + reportViolation( drcItem, item->GetPosition(), item->GetLayerSet().Seq()[0] ); } };