Fix footprints being difficult to select in high-contrast modes.

(regression)
This commit is contained in:
Alex Shvartzkop 2023-10-23 06:09:10 +03:00
parent fb84f4592b
commit 97901c9ac5
1 changed files with 4 additions and 0 deletions

View File

@ -3433,6 +3433,10 @@ void PCB_SELECTION_TOOL::FilterCollectorForFootprints( GENERAL_COLLECTOR& aColle
if( !fp )
continue;
// Make footprints not difficult to select in high-contrast modes.
if( layers[fp->GetLayer()] )
continue;
BOX2I bbox = fp->GetLayerBoundingBox( layers );
// If the point clicked is not inside the visible bounding box, we can also remove it.