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

(regression)

(cherry picked from commit 97901c9ac5)
This commit is contained in:
Alex Shvartzkop
2023-10-23 06:10:23 +03:00
parent cbf1b2af47
commit d3d23d18fb
+4
View File
@@ -3295,6 +3295,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.