Handle piechart case for Altium lib import
This doesn't parse the data but it will let the user know what wasn't properly parsed.
This commit is contained in:
parent
2f0ff4e557
commit
7ed755ac61
|
@ -889,9 +889,9 @@ void SCH_IO_ALTIUM::ParseRecord( int index, std::map<wxString, wxString>& proper
|
||||||
ParseEllipse( properties );
|
ParseEllipse( properties );
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case ALTIUM_SCH_RECORD::PIECHART:
|
case ALTIUM_SCH_RECORD::PIECHART:
|
||||||
m_reporter->Report( _( "Record 'PIECHART' not handled." ), RPT_SEVERITY_INFO );
|
m_reporter->Report( _( "Record 'PIECHART' not handled." ), RPT_SEVERITY_INFO );
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case ALTIUM_SCH_RECORD::ROUND_RECTANGLE:
|
case ALTIUM_SCH_RECORD::ROUND_RECTANGLE:
|
||||||
ParseRoundRectangle( properties );
|
ParseRoundRectangle( properties );
|
||||||
|
@ -4212,6 +4212,13 @@ std::map<wxString,LIB_SYMBOL*> SCH_IO_ALTIUM::ParseLibFile( const ALTIUM_COMPOUN
|
||||||
|
|
||||||
case ALTIUM_SCH_RECORD::ELLIPSE: ParseEllipse( properties, symbols ); break;
|
case ALTIUM_SCH_RECORD::ELLIPSE: ParseEllipse( properties, symbols ); break;
|
||||||
|
|
||||||
|
case ALTIUM_SCH_RECORD::PIECHART:
|
||||||
|
m_reporter->Report( wxString::Format( _( "Record 'PIECHART' not handled, found "
|
||||||
|
"in %s." ),
|
||||||
|
symbols[0]->GetName() ),
|
||||||
|
RPT_SEVERITY_ERROR );
|
||||||
|
break;
|
||||||
|
|
||||||
case ALTIUM_SCH_RECORD::ROUND_RECTANGLE: ParseRoundRectangle( properties, symbols ); break;
|
case ALTIUM_SCH_RECORD::ROUND_RECTANGLE: ParseRoundRectangle( properties, symbols ); break;
|
||||||
|
|
||||||
case ALTIUM_SCH_RECORD::ELLIPTICAL_ARC: ParseEllipticalArc( properties, symbols ); break;
|
case ALTIUM_SCH_RECORD::ELLIPTICAL_ARC: ParseEllipticalArc( properties, symbols ); break;
|
||||||
|
|
Loading…
Reference in New Issue