diff --git a/pcbnew/generators/pcb_tuning_pattern.cpp b/pcbnew/generators/pcb_tuning_pattern.cpp index 415337f9c7..e445bdad6a 100644 --- a/pcbnew/generators/pcb_tuning_pattern.cpp +++ b/pcbnew/generators/pcb_tuning_pattern.cpp @@ -770,8 +770,8 @@ void PCB_TUNING_PATTERN::EditStart( GENERATOR_TOOL* aTool, BOARD* aBoard, BOARD_ SetFlags( IN_EDIT ); - int layer = GetLayer(); PNS::ROUTER* router = aTool->Router(); + int layer = router->GetInterface()->GetPNSLayerFromBoardLayer( GetLayer() ); aTool->ClearRouterChanges(); router->SyncWorld();