Allow marker selection in high-contrast mode.
Fixes: lp:1793357
* https://bugs.launchpad.net/kicad/+bug/1793357
(cherry picked from commit 04534c83e0
)
This commit is contained in:
parent
4e04468e47
commit
9240a54f4a
|
@ -1543,8 +1543,10 @@ bool SELECTION_TOOL::selectable( const BOARD_ITEM* aItem ) const
|
|||
int layers[KIGFX::VIEW::VIEW_MAX_LAYERS], layers_count;
|
||||
|
||||
// Filter out items that do not belong to active layers
|
||||
const std::set<unsigned int>& activeLayers = getView()->GetPainter()->
|
||||
GetSettings()->GetActiveLayers();
|
||||
std::set<unsigned int> activeLayers = getView()->GetPainter()->GetSettings()->GetActiveLayers();
|
||||
|
||||
// The markers layer is considered to be always active
|
||||
activeLayers.insert( (unsigned int) LAYER_DRC );
|
||||
|
||||
aItem->ViewGetLayers( layers, layers_count );
|
||||
|
||||
|
|
Loading…
Reference in New Issue