From 806f9aa1cab016784d3e1d7f7687885863123aec Mon Sep 17 00:00:00 2001 From: dickelbeck Date: Thu, 13 Dec 2007 14:23:50 +0000 Subject: [PATCH] highlight tool HitTest()ing prefers pads over tracks --- pcbnew/surbrill.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/pcbnew/surbrill.cpp b/pcbnew/surbrill.cpp index f8ffaf1fb9..e12ebb66cb 100644 --- a/pcbnew/surbrill.cpp +++ b/pcbnew/surbrill.cpp @@ -99,7 +99,9 @@ int WinEDA_PcbFrame::Select_High_Light( wxDC* DC ) GENERAL_COLLECTORS_GUIDE guide = GetCollectorsGuide(); - // tweak the collector + + // optionally, modify the "guide" here as needed using its member functions + m_Collector->Collect( m_Pcb, GENERAL_COLLECTOR::PadsOrTracks, GetScreen()->RefPos( true ), guide );