diff --git a/src/slic3r/GUI/MainFrame.cpp b/src/slic3r/GUI/MainFrame.cpp index b6644e0f75..ad6603fcf0 100644 --- a/src/slic3r/GUI/MainFrame.cpp +++ b/src/slic3r/GUI/MainFrame.cpp @@ -1053,7 +1053,7 @@ void MainFrame::on_dpi_changed(const wxRect& suggested_rect) this->SetFont(this->normal_font()); #ifdef _WIN32 - if (m_tmp_top_bar->IsShown()) + if (m_tmp_top_bar && m_tmp_top_bar->IsShown()) m_tmp_top_bar->Rescale(); m_tabpanel->Rescale(); #endif