Re-allows selection of bitmaps not owned by a footprint.
It was broken by my commit f8051d95
Fixes #13747
https://gitlab.com/kicad/code/kicad/issues/13747
This commit is contained in:
@@ -2,7 +2,7 @@
|
||||
* This program source code file is part of KiCad, a free EDA CAD application.
|
||||
*
|
||||
* Copyright (C) 2013-2017 CERN
|
||||
* Copyright (C) 2018-2022 KiCad Developers, see AUTHORS.txt for contributors.
|
||||
* Copyright (C) 2018-2023 KiCad Developers, see AUTHORS.txt for contributors.
|
||||
* @author Tomasz Wlostowski <[email protected]>
|
||||
* @author Maciej Suminski <[email protected]>
|
||||
*
|
||||
@@ -2246,9 +2246,17 @@ bool PCB_SELECTION_TOOL::itemPassesFilter( BOARD_ITEM* aItem, bool aMultiSelect
|
||||
break;
|
||||
|
||||
case PCB_BITMAP_T:
|
||||
if( !m_filter.graphics || !m_isFootprintEditor )
|
||||
// a bitmap living in a footprint must not be selected inside the board editor
|
||||
if( !m_filter.graphics )
|
||||
return false;
|
||||
|
||||
if( !m_isFootprintEditor )
|
||||
{
|
||||
if( dynamic_cast<FOOTPRINT*>( aItem->GetParent() ) )
|
||||
return false;
|
||||
}
|
||||
|
||||
|
||||
break;
|
||||
|
||||
case PCB_FP_TEXT_T:
|
||||
|
||||
Reference in New Issue
Block a user