Allow marker selection in high-contrast mode.
Fixes: lp:1793357 * https://bugs.launchpad.net/kicad/+bug/1793357
This commit is contained in:
parent
47fac8a259
commit
04534c83e0
|
@ -21,8 +21,8 @@
|
|||
* 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA
|
||||
*/
|
||||
|
||||
#ifndef KICAD_DIALOG_TEXT_PROPERTIES_H
|
||||
#define KICAD_DIALOG_TEXT_PROPERTIES_H
|
||||
#ifndef DIALOG_TEXT_PROPERTIES_H
|
||||
#define DIALOG_TEXT_PROPERTIES_H
|
||||
|
||||
#include <widgets/unit_binder.h>
|
||||
#include <wx/valnum.h>
|
||||
|
@ -32,6 +32,9 @@
|
|||
|
||||
class PCB_BASE_EDIT_FRAME;
|
||||
class BOARD_ITEM;
|
||||
class EDA_TEXT;
|
||||
class TEXTE_MODULE;
|
||||
class TEXTE_PCB;
|
||||
|
||||
|
||||
class DIALOG_TEXT_PROPERTIES : public DIALOG_TEXT_PROPERTIES_BASE
|
||||
|
@ -66,4 +69,4 @@ private:
|
|||
};
|
||||
|
||||
|
||||
#endif //KICAD_DIALOG_TEXT_PROPERTIES_H
|
||||
#endif //DIALOG_TEXT_PROPERTIES_H
|
||||
|
|
|
@ -1524,8 +1524,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