Pcbnew: do not select a PCB_REFERENCE_IMAGE if the LAYER_DRAW_BITMAPS is not visible.

LAYER_DRAW_BITMAPS layer controls transparency and visibility of images on the board.
Fixes https://gitlab.com/kicad/code/kicad/-/issues/16283
This commit is contained in:
jean-pierre charras 2024-03-04 11:46:45 +01:00
parent 31ae825b9d
commit e769fdfab0
1 changed files with 4 additions and 0 deletions

View File

@ -2796,6 +2796,10 @@ bool PCB_SELECTION_TOOL::Selectable( const BOARD_ITEM* aItem, bool checkVisibili
if( options.m_ImageOpacity == 0.00 )
return false;
// Bitmap images on board are hidden if LAYER_DRAW_BITMAPS is not visible
if( !view()->IsLayerVisible( LAYER_DRAW_BITMAPS ) )
return false;
KI_FALLTHROUGH;
case PCB_SHAPE_T: