Fix initialisation issue.

Fixes https://gitlab.com/kicad/code/kicad/issues/4014
This commit is contained in:
Jeff Young 2020-03-13 17:25:07 +00:00
parent 085d80e3f3
commit 095bede3ba
1 changed files with 8 additions and 0 deletions

View File

@ -37,6 +37,14 @@ class PARAM_CFG;
class ERC_SETTINGS
{
public:
ERC_SETTINGS()
{
for( int i = ERCE_FIRST; i <= ERCE_LAST; ++i )
m_Severities[ i ] = RPT_SEVERITY_ERROR;
m_Severities[ ERCE_UNSPECIFIED ] = RPT_SEVERITY_UNDEFINED;
}
void LoadDefaults()
{
m_Severities[ ERCE_SIMILAR_GLBL_LABELS ] = RPT_SEVERITY_WARNING;