Refactor layer enumerations to all live in the same place
This commit is contained in:
committed by
Wayne Stambaugh
parent
40f60c9871
commit
3ec28e2acf
@@ -199,7 +199,7 @@ bool BRDITEMS_PLOTTER::PlotAllTextsModule( MODULE* aModule )
|
||||
TEXTE_MODULE* textModule = &aModule->Reference();
|
||||
LAYER_NUM textLayer = textModule->GetLayer();
|
||||
|
||||
if( textLayer >= LAYER_ID_COUNT ) // how will this ever be true?
|
||||
if( textLayer >= PCB_LAYER_ID_COUNT ) // how will this ever be true?
|
||||
return false;
|
||||
|
||||
if( !m_layerMask[textLayer] )
|
||||
@@ -211,7 +211,7 @@ bool BRDITEMS_PLOTTER::PlotAllTextsModule( MODULE* aModule )
|
||||
textModule = &aModule->Value();
|
||||
textLayer = textModule->GetLayer();
|
||||
|
||||
if( textLayer > LAYER_ID_COUNT ) // how will this ever be true?
|
||||
if( textLayer > PCB_LAYER_ID_COUNT ) // how will this ever be true?
|
||||
return false;
|
||||
|
||||
if( !m_layerMask[textLayer] )
|
||||
@@ -249,7 +249,7 @@ bool BRDITEMS_PLOTTER::PlotAllTextsModule( MODULE* aModule )
|
||||
|
||||
textLayer = textModule->GetLayer();
|
||||
|
||||
if( textLayer >= LAYER_ID_COUNT )
|
||||
if( textLayer >= PCB_LAYER_ID_COUNT )
|
||||
return false;
|
||||
|
||||
if( !m_layerMask[textLayer] )
|
||||
|
||||
Reference in New Issue
Block a user