From 5634eaaf7a41cd5f42c227e1d6ef2f11bf366dbd Mon Sep 17 00:00:00 2001 From: Vladimir Ur Date: Thu, 27 Oct 2011 17:01:32 +0400 Subject: [PATCH] PCBNEW favored module placed on OPPOSITE side selected layer become. Now it select module from selected side if present. Especially handy in contrast view. --- pcbnew/controle.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/pcbnew/controle.cpp b/pcbnew/controle.cpp index 9068ece878..5189c4ef5f 100644 --- a/pcbnew/controle.cpp +++ b/pcbnew/controle.cpp @@ -55,7 +55,8 @@ extern bool Magnetize( BOARD* m_Pcb, PCB_EDIT_FRAME* frame, */ static BOARD_ITEM* AllAreModulesAndReturnSmallestIfSo( GENERAL_COLLECTOR* aCollector ) { - int count = aCollector->GetCount(); + int count = aCollector->GetPrimaryCount(); // try to use preferred layer + if( 0 == count ) count = aCollector->GetCount(); for( int i = 0; i