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:
Seth Hillbrand
2018-05-30 13:51:20 -07:00
parent d90d4ff682
commit 3ce8a4856a
4 changed files with 5 additions and 5 deletions
+1 -1
View File
@@ -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: