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:
Jeff Young 2018-09-20 21:54:06 +01:00 committed by Seth Hillbrand
parent 4e04468e47
commit 9240a54f4a
1 changed files with 4 additions and 2 deletions

View File

@ -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 );