Fix saving of default netclass

This was broken as a side-effect of 3939b31
Default netclass doesn't get the "nets" member
but still needs to be added to the array of classes

Fixes https://gitlab.com/kicad/code/kicad/-/issues/4860
This commit is contained in:
Jon Evans 2020-07-13 19:53:03 -04:00
parent efc3f8c29d
commit 97c360aa9b
1 changed files with 2 additions and 1 deletions

View File

@ -76,8 +76,9 @@ NET_SETTINGS::NET_SETTINGS( JSON_SETTINGS* aParent, const std::string& aPath ) :
}
netJson["nets"] = membersJson;
ret.push_back( netJson );
}
ret.push_back( netJson );
}
return ret;