Commit 7377cb54 authored by Dick Hollenbeck's avatar Dick Hollenbeck
Browse files

formatting and fix selection clarification bug in pcbnew, could not move...

formatting and fix selection clarification bug in pcbnew, could not move reference text when hidden under another footprint
parent c58bd957
Loading
Loading
Loading
Loading
+11 −0
Original line number Diff line number Diff line
@@ -54,8 +54,19 @@ extern bool Magnetize( PCB_EDIT_FRAME* frame, int aCurrentTool,
 */
static BOARD_ITEM* AllAreModulesAndReturnSmallestIfSo( GENERAL_COLLECTOR* aCollector )
{
#if 0   // Dick: this is not consistent with name of this function, and does not
        // work correctly using 'M' (move hotkey) when another module's (2nd module) reference
        // is under a module (first module) and you want to move the reference.
        // Another way to fix this would be to
        // treat module text as copper layer content, and put the module text into
        // the primary list.  I like the coded behavior best.  If it breaks something
        // perhaps you need a different test before calling this function, which should
        // do what its name says it does.
    int count = aCollector->GetPrimaryCount();     // try to use preferred layer
    if( 0 == count ) count = aCollector->GetCount();
#else
    int count = aCollector->GetCount();
#endif

    for( int i = 0; i<count;  ++i )
    {
+19 −19

File changed.

Contains only whitespace changes.

+8 −8

File changed.

Contains only whitespace changes.