Fix for uninitialized length tuning status popup.

This commit is contained in:
Maciej Suminski 2015-03-04 20:08:30 +01:00
parent a550ff84db
commit 63ae839489
2 changed files with 5 additions and 6 deletions

View File

@ -171,8 +171,6 @@ void LENGTH_TUNER_TOOL::performTuning()
}
PNS_TUNE_STATUS_POPUP statusPopup( m_frame );
statusPopup.Popup();
PNS_MEANDER_PLACER* placer = static_cast<PNS_MEANDER_PLACER*>( m_router->Placer() );
VECTOR2I end;
@ -199,6 +197,7 @@ void LENGTH_TUNER_TOOL::performTuning()
statusPopup.Update( m_router );
statusPopup.Move( p );
statusPopup.Popup();
}
else if( evt->IsClick( BUT_LEFT ) )
{

View File

@ -25,11 +25,11 @@
PNS_TUNE_STATUS_POPUP::PNS_TUNE_STATUS_POPUP( PCB_EDIT_FRAME* aParent ) :
WX_STATUS_POPUP( aParent )
{
m_panel->SetBackgroundColour( wxColour( 64, 64, 64 ) );
m_statusLine = new wxStaticText( m_panel, wxID_ANY, wxT( "Status text 1\n" ) ) ;
m_topSizer->Add( m_statusLine, 1, wxALL | wxEXPAND, 5 );
m_panel->SetBackgroundColour( wxColour( 64, 64, 64 ) );
m_statusLine = new wxStaticText( m_panel, wxID_ANY, wxT( "Status text 1\n" ) ) ;
m_topSizer->Add( m_statusLine, 1, wxALL | wxEXPAND, 5 );
updateSize();
updateSize();
}