Handle empty texts correctly

This commit is contained in:
Maciej Suminski 2017-09-22 17:23:23 +02:00
parent 87465002c3
commit 7f697de432
1 changed files with 1 additions and 1 deletions

View File

@ -1737,7 +1737,7 @@ LIB_TEXT* SCH_EAGLE_PLUGIN::loadSymbolText( std::unique_ptr<LIB_PART>& aPart,
libtext->SetUnit( aGateNumber );
libtext->SetPosition( wxPoint( etext.x * EUNIT_TO_MIL, etext.y * EUNIT_TO_MIL ) );
libtext->SetText( aLibText->GetNodeContent() );
libtext->SetText( aLibText->GetNodeContent().IsEmpty() ? "~~" : aLibText->GetNodeContent() );
libtext->SetTextSize( etext.ConvertSize() );
if( etext.ratio )