Browse Source

Fix plotting colour of intersheet refs.

7.0
Jeff Young 3 years ago
parent
commit
5ebc51bf63
  1. 6
      eeschema/sch_painter.cpp
  2. 4
      include/render_settings.h

6
eeschema/sch_painter.cpp

@ -306,10 +306,6 @@ float SCH_PAINTER::getShadowWidth( bool aForHighlight ) 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 );
if( aItem->Type() == SCH_LINE_T )
@ -2149,7 +2145,7 @@ void SCH_PAINTER::draw( SCH_SYMBOL* aSymbol, int aLayer )
}
void SCH_PAINTER::draw( const SCH_FIELD *aField, int aLayer )
void SCH_PAINTER::draw( const SCH_FIELD* aField, int aLayer )
{
bool drawingShadows = aLayer == LAYER_SELECTION_SHADOWS;

4
include/render_settings.h

@ -253,6 +253,10 @@ public:
*/
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];
}

Loading…
Cancel
Save