Handle empty texts correctly
This commit is contained in:
parent
87465002c3
commit
7f697de432
|
@ -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 )
|
||||
|
|
Loading…
Reference in New Issue