Fix a crash on Linux when first shown of Plater
Change-Id: Ia8cab01ed022b6d48dd41820adbd4901236df561
This commit is contained in:
parent
636319fb4c
commit
ef73232311
1 changed files with 2 additions and 1 deletions
|
@ -6771,7 +6771,8 @@ Plater::Plater(wxWindow *parent, MainFrame *main_frame)
|
|||
|
||||
bool Plater::Show(bool show)
|
||||
{
|
||||
wxGetApp().mainframe->show_option(show);
|
||||
if (wxGetApp().mainframe)
|
||||
wxGetApp().mainframe->show_option(show);
|
||||
return wxPanel::Show(show);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue