Fix wxWidgets sizer assert in SYMBOL_PREVIEW_WIDGET

This commit is contained in:
Roberto Fernandez Bautista 2022-09-02 12:29:01 +02:00
parent 6d14ce24aa
commit 26104c83ba
1 changed files with 1 additions and 1 deletions

View File

@ -52,7 +52,7 @@ SYMBOL_PREVIEW_WIDGET::SYMBOL_PREVIEW_WIDGET( wxWindow* aParent, KIWAY& aKiway,
canvasType = EDA_DRAW_PANEL_GAL::GAL_TYPE_OPENGL;
}
m_preview = new SCH_PREVIEW_PANEL( aParent, wxID_ANY, wxDefaultPosition, wxSize( -1, -1 ),
m_preview = new SCH_PREVIEW_PANEL( this, wxID_ANY, wxDefaultPosition, wxSize( -1, -1 ),
m_galDisplayOptions, canvasType );
m_preview->SetStealsFocus( false );
m_preview->ShowScrollbars( wxSHOW_SB_NEVER, wxSHOW_SB_NEVER );