fix zones

This commit is contained in:
Dick Hollenbeck 2014-06-24 13:30:39 -05:00
parent 4578ea8b9e
commit ab51a49c5a
2 changed files with 2 additions and 2 deletions

View File

@ -595,7 +595,7 @@ D_PAD* MODULE::GetPad( const wxPoint& aPosition, LSET aLayerMask )
for( D_PAD* pad = m_Pads; pad; pad = pad->Next() ) for( D_PAD* pad = m_Pads; pad; pad = pad->Next() )
{ {
// ... and on the correct layer. // ... and on the correct layer.
if( ( pad->GetLayerSet() & aLayerMask ) == 0 ) if( !( pad->GetLayerSet() & aLayerMask ).any() )
continue; continue;
if( pad->HitTest( aPosition ) ) if( pad->HitTest( aPosition ) )

View File

@ -183,7 +183,7 @@ public:
*/ */
bool IsOnCopperLayer() const bool IsOnCopperLayer() const
{ {
return LSET::AllNonCuMask()[GetLayer()]; return IsCopperLayer( GetLayer() );
} }
/// How to fill areas: 0 = use filled polygons, 1 => fill with segments. /// How to fill areas: 0 = use filled polygons, 1 => fill with segments.