Fix plotting colour of intersheet refs.
This commit is contained in:
parent
e82ff4de73
commit
5ebc51bf63
|
@ -306,10 +306,6 @@ float SCH_PAINTER::getShadowWidth( bool aForHighlight ) const
|
||||||
|
|
||||||
COLOR4D SCH_PAINTER::getRenderColor( const EDA_ITEM* aItem, int aLayer, bool aDrawingShadows ) const
|
COLOR4D SCH_PAINTER::getRenderColor( const EDA_ITEM* aItem, int aLayer, bool aDrawingShadows ) const
|
||||||
{
|
{
|
||||||
// We don't (yet?) have a separate color for intersheet refs
|
|
||||||
if( aLayer == LAYER_INTERSHEET_REFS )
|
|
||||||
aLayer = LAYER_GLOBLABEL;
|
|
||||||
|
|
||||||
COLOR4D color = m_schSettings.GetLayerColor( aLayer );
|
COLOR4D color = m_schSettings.GetLayerColor( aLayer );
|
||||||
|
|
||||||
if( aItem->Type() == SCH_LINE_T )
|
if( aItem->Type() == SCH_LINE_T )
|
||||||
|
|
|
@ -253,6 +253,10 @@ public:
|
||||||
*/
|
*/
|
||||||
inline const COLOR4D& GetLayerColor( int aLayer ) const
|
inline const COLOR4D& GetLayerColor( int aLayer ) const
|
||||||
{
|
{
|
||||||
|
// We don't (yet?) have a separate color for intersheet refs
|
||||||
|
if( aLayer == LAYER_INTERSHEET_REFS )
|
||||||
|
aLayer = LAYER_GLOBLABEL;
|
||||||
|
|
||||||
return m_layerColors[aLayer];
|
return m_layerColors[aLayer];
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue