erc_item.cpp: fix issue that created broken error list in panel setup severities

Fix a minor Coverity warning.
This commit is contained in:
jean-pierre charras 2020-04-29 15:30:31 +02:00
parent b67f18b394
commit 62d78cdf49
2 changed files with 2 additions and 1 deletions

View File

@ -35,7 +35,7 @@ wxString ERC_ITEM::GetErrorText( int aErrorCode ) const
if( aErrorCode < 0 ) if( aErrorCode < 0 )
aErrorCode = m_errorCode; aErrorCode = m_errorCode;
switch( m_errorCode ) switch( aErrorCode )
{ {
case ERCE_UNSPECIFIED: case ERCE_UNSPECIFIED:
return wxString( _("ERC err unspecified") ); return wxString( _("ERC err unspecified") );

View File

@ -75,6 +75,7 @@ SCH_RENDER_SETTINGS::SCH_RENDER_SETTINGS() :
m_ShowDisabled( false ), m_ShowDisabled( false ),
m_ShowUmbilicals( true ), m_ShowUmbilicals( true ),
m_OverrideItemColors( false ), m_OverrideItemColors( false ),
m_TextOffsetRatio( 0.08 ),
m_DefaultWireThickness( DEFAULT_WIRE_THICKNESS * IU_PER_MILS ), m_DefaultWireThickness( DEFAULT_WIRE_THICKNESS * IU_PER_MILS ),
m_DefaultBusThickness( DEFAULT_BUS_THICKNESS * IU_PER_MILS ) m_DefaultBusThickness( DEFAULT_BUS_THICKNESS * IU_PER_MILS )
{ } { }