Assert for non-standard rotation during Eagle schematics import

This commit is contained in:
Maciej Suminski 2017-07-03 16:01:39 +02:00
parent deaa1d1477
commit 3298387f7b
1 changed files with 3 additions and 0 deletions

View File

@ -929,6 +929,9 @@ LIB_PIN* SCH_EAGLE_PLUGIN::loadPin( LIB_PART* aPart, wxXmlNode* aPin )
switch( roti ) switch( roti )
{ {
default:
wxASSERT_MSG( false, wxString::Format( "Unhandled orientation (%d degrees)", roti ) );
// fall through
case 0: case 0:
pin->SetOrientation( 'R' ); pin->SetOrientation( 'R' );
break; break;