Repair missing checkVisibilityOnly test.

Fixes https://gitlab.com/kicad/code/kicad/issues/5516
This commit is contained in:
Jeff Young 2020-09-05 19:11:34 +01:00
parent adfcdc89af
commit 1be1205734
1 changed files with 1 additions and 1 deletions

View File

@ -1874,7 +1874,7 @@ bool SELECTION_TOOL::Selectable( const BOARD_ITEM* aItem, bool checkVisibilityOn
case PCB_MODULE_EDGE_T: case PCB_MODULE_EDGE_T:
// Module edge selections are only allowed in modedit mode. // Module edge selections are only allowed in modedit mode.
if( !m_editModules ) if( !m_editModules && !checkVisibilityOnly )
return false; return false;
break; break;