Fix a crash on Linux when first shown of Plater

Change-Id: Ia8cab01ed022b6d48dd41820adbd4901236df561
This commit is contained in:
lane.wei 2022-09-29 08:40:39 +08:00 committed by Lane.Wei
parent 636319fb4c
commit ef73232311

View file

@ -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);
}