Remove redundant message panel SetMsgPanel
SetMsgPanel( m_pcb ) proceeded to erase and recreate the msg panel anyway...
This commit is contained in:
parent
b45eb56ddf
commit
97b5cff5fe
|
@ -41,19 +41,9 @@
|
|||
void PCB_BASE_FRAME::Compile_Ratsnest( bool aDisplayStatus )
|
||||
{
|
||||
GetBoard()->GetConnectivity()->RecalculateRatsnest();
|
||||
ClearMsgPanel();
|
||||
|
||||
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 );
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue