erc_item.cpp: fix issue that created broken error list in panel setup severities
Fix a minor Coverity warning.
This commit is contained in:
parent
b67f18b394
commit
62d78cdf49
|
@ -35,7 +35,7 @@ wxString ERC_ITEM::GetErrorText( int aErrorCode ) const
|
|||
if( aErrorCode < 0 )
|
||||
aErrorCode = m_errorCode;
|
||||
|
||||
switch( m_errorCode )
|
||||
switch( aErrorCode )
|
||||
{
|
||||
case ERCE_UNSPECIFIED:
|
||||
return wxString( _("ERC err unspecified") );
|
||||
|
|
|
@ -75,6 +75,7 @@ SCH_RENDER_SETTINGS::SCH_RENDER_SETTINGS() :
|
|||
m_ShowDisabled( false ),
|
||||
m_ShowUmbilicals( true ),
|
||||
m_OverrideItemColors( false ),
|
||||
m_TextOffsetRatio( 0.08 ),
|
||||
m_DefaultWireThickness( DEFAULT_WIRE_THICKNESS * IU_PER_MILS ),
|
||||
m_DefaultBusThickness( DEFAULT_BUS_THICKNESS * IU_PER_MILS )
|
||||
{ }
|
||||
|
|
Loading…
Reference in New Issue