- New typedef LAYER_MSK to encapsulate a layer bitmap

- Renamed ReturnMaskLayer to GetLayerMask (since it's a plain getter)
This commit is contained in:
Lorenzo Marcantonio
2013-03-30 18:24:04 +01:00
parent 1702ab3a00
commit e0303a4558
76 changed files with 329 additions and 307 deletions
+2 -4
View File
@@ -255,11 +255,9 @@ void DIALOG_PLOT::Plot( wxCommandEvent& event )
// Save the current plot options in the board
m_parent->SetPlotSettings( m_plotOpts );
long layerMask = 1;
for( layer = 0; layer < NB_LAYERS; layer++, layerMask <<= 1 )
for( layer = 0; layer < NB_LAYERS; ++layer )
{
if( m_plotOpts.GetLayerSelection() & layerMask )
if( m_plotOpts.GetLayerSelection() & GetLayerMask( layer ) )
{
// Pick the basename from the board file
wxFileName fn( boardFilename );