Fix a minor bug relative to SCH_MARKERs introduced in rev 6014

This commit is contained in:
jean-pierre charras 2015-07-29 20:48:20 +02:00
parent 6dd0073130
commit 21b98f40b7
1 changed files with 2 additions and 2 deletions

View File

@ -91,8 +91,8 @@ void SCH_MARKER::Draw( EDA_DRAW_PANEL* aPanel, wxDC* aDC,
if( GetMarkerType() == MARKER_BASE::MARKER_ERC )
{
color = ( GetErrorLevel() == WAR ) ? GetLayerColor( LAYER_ERC_WARN ) :
GetLayerColor( LAYER_ERC_ERR );
color = ( GetErrorLevel() == MARKER_BASE::MARKER_SEVERITY_ERROR ) ?
GetLayerColor( LAYER_ERC_ERR ) : GetLayerColor( LAYER_ERC_WARN );
}
if( aColor < 0 )