Remove ToLayer_ID calls from color checks
Colors are assigned to virtual layers while the ToLayer_ID returns a physical layer enum. The GetLayerColor/SetLayerColor take LAYER_NUM (int) values that can be larger than the physical layer count.
This commit is contained in:
@@ -56,7 +56,7 @@
|
||||
|
||||
COLOR4D BRDITEMS_PLOTTER::getColor( LAYER_NUM aLayer )
|
||||
{
|
||||
COLOR4D color = m_board->Colors().GetLayerColor( ToLAYER_ID( aLayer ) );
|
||||
COLOR4D color = m_board->Colors().GetLayerColor( aLayer );
|
||||
|
||||
// A hack to avoid plotting ahite itmen in white color, expecting the paper
|
||||
// is also white: use a non white color:
|
||||
|
||||
Reference in New Issue
Block a user