Remove redundant message panel SetMsgPanel

SetMsgPanel( m_pcb ) proceeded to erase and recreate the msg panel anyway...
This commit is contained in:
Marek Roszko 2020-12-08 00:35:37 -05:00
parent b45eb56ddf
commit 97b5cff5fe
1 changed files with 0 additions and 10 deletions

View File

@ -41,19 +41,9 @@
void PCB_BASE_FRAME::Compile_Ratsnest( bool aDisplayStatus ) void PCB_BASE_FRAME::Compile_Ratsnest( bool aDisplayStatus )
{ {
GetBoard()->GetConnectivity()->RecalculateRatsnest(); GetBoard()->GetConnectivity()->RecalculateRatsnest();
ClearMsgPanel();
if( aDisplayStatus ) if( aDisplayStatus )
{ {
std::shared_ptr<CONNECTIVITY_DATA> conn = m_pcb->GetConnectivity();
wxString msg;
msg.Printf( wxT( " %d" ), conn->GetPadCount() );
AppendMsgPanel( _( "Pads" ), msg );
msg.Printf( wxT( " %d" ), conn->GetNetCount() - 1 /* Don't include "No Net" in count */ );
AppendMsgPanel( _( "Nets" ), msg );
SetMsgPanel( m_pcb ); SetMsgPanel( m_pcb );
} }
} }