Follow-up 26d52595 : Fixed a crash on move the GCodeViewer on other monitor

This commit is contained in:
YuSanka 2024-05-14 16:46:14 +02:00 committed by Lukas Matena
parent 0b7616c121
commit d0e70e035a

View File

@ -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