CADSTAR Schematic: Fix parsing of ATTRCOLORS.
Apparently there can be a `INVISIBLE` token. Unclear what it means,
but lets read it anyway
(cherry picked from commit 41bf397d24
)
This commit is contained in:
parent
8d8f96b094
commit
2553da38b4
|
@ -2258,6 +2258,10 @@ void CADSTAR_ARCHIVE_PARSER::ATTRCOLORS::Parse( XNODE* aNode, PARSER_CONTEXT* aC
|
||||||
attrcol.Parse( cNode, aContext );
|
attrcol.Parse( cNode, aContext );
|
||||||
AttributeColors.insert( { attrcol.AttributeID, attrcol } );
|
AttributeColors.insert( { attrcol.AttributeID, attrcol } );
|
||||||
}
|
}
|
||||||
|
else if( cNodeName == wxT( "INVISIBLE" ) )
|
||||||
|
{
|
||||||
|
IsVisible = false;
|
||||||
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
THROW_UNKNOWN_NODE_IO_ERROR( cNodeName, aNode->GetName() );
|
THROW_UNKNOWN_NODE_IO_ERROR( cNodeName, aNode->GetName() );
|
||||||
|
|
|
@ -1253,6 +1253,8 @@ public:
|
||||||
DFLTSETTINGS DefaultSettings;
|
DFLTSETTINGS DefaultSettings;
|
||||||
std::map<ATTRIBUTE_ID, ATTRCOL> AttributeColors;
|
std::map<ATTRIBUTE_ID, ATTRCOL> AttributeColors;
|
||||||
|
|
||||||
|
bool IsVisible = true; // unclear what this represents - maybe all attributes are hidden?
|
||||||
|
|
||||||
void Parse( XNODE* aNode, PARSER_CONTEXT* aContext ) override;
|
void Parse( XNODE* aNode, PARSER_CONTEXT* aContext ) override;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue