Make sure initially loaded footprint is rendered.
Also sets the initial footprint to the current footprint when doing a Choose Footprint from the Eeschema Edit Property dialog. Fixes: lp:1776126 * https://bugs.launchpad.net/kicad/+bug/1776126
This commit is contained in:
parent
16411c8c1e
commit
660aed71b4
|
@ -150,7 +150,7 @@ void DIALOG_EDIT_ONE_FIELD::init()
|
|||
void DIALOG_EDIT_ONE_FIELD::OnTextValueSelectButtonClick( wxCommandEvent& aEvent )
|
||||
{
|
||||
// pick a footprint using the footprint picker.
|
||||
wxString fpid;
|
||||
wxString fpid = m_TextValue->GetValue();
|
||||
|
||||
KIWAY_PLAYER* frame = Kiway().Player( FRAME_PCB_MODULE_VIEWER_MODAL, true );
|
||||
|
||||
|
|
|
@ -233,11 +233,10 @@ FOOTPRINT_VIEWER_FRAME::FOOTPRINT_VIEWER_FRAME( KIWAY* aKiway, wxWindow* aParent
|
|||
}
|
||||
|
||||
drawPanel->DisplayBoard( m_Pcb );
|
||||
updateView();
|
||||
|
||||
m_auimgr.SetManagedWindow( this );
|
||||
|
||||
wxSize minsize(100,-1); // Min size of list boxes
|
||||
wxSize minsize( 100, -1 ); // Min size of list boxes
|
||||
|
||||
// Main toolbar is initially docked at the top of the main window and dockable on any side.
|
||||
// The close button is disable because the footprint viewer has no main menu to re-enable it.
|
||||
|
@ -303,6 +302,7 @@ FOOTPRINT_VIEWER_FRAME::FOOTPRINT_VIEWER_FRAME( KIWAY* aKiway, wxWindow* aParent
|
|||
|
||||
GetGalCanvas()->GetGAL()->SetAxesEnabled( true );
|
||||
UseGalCanvas( switchToGalCanvas );
|
||||
updateView();
|
||||
|
||||
if( !IsModal() ) // For modal mode, calling ShowModal() will show this frame
|
||||
{
|
||||
|
|
Loading…
Reference in New Issue