Clear group info before parsing.
PCB_PARSER is a long-lived object. Doing it in init() is not sufficient. Fixes https://gitlab.com/kicad/code/kicad/issues/6074
This commit is contained in:
parent
3045dbd6e8
commit
68ec151f28
|
@ -64,7 +64,6 @@ void PCB_PARSER::init()
|
|||
m_requiredVersion = 0;
|
||||
m_layerIndices.clear();
|
||||
m_layerMasks.clear();
|
||||
m_groupInfos.clear();
|
||||
m_resetKIIDMap.clear();
|
||||
|
||||
// Add untranslated default (i.e. English) layernames.
|
||||
|
@ -488,6 +487,8 @@ BOARD_ITEM* PCB_PARSER::Parse()
|
|||
BOARD_ITEM* item;
|
||||
LOCALE_IO toggle;
|
||||
|
||||
m_groupInfos.clear();
|
||||
|
||||
// MODULEs can be prefixed with an initial block of single line comments and these
|
||||
// are kept for Format() so they round trip in s-expression form. BOARDs might
|
||||
// eventually do the same, but currently do not.
|
||||
|
|
Loading…
Reference in New Issue