From d0e70e035abcaa19ff843935d3dace7ef78c868e Mon Sep 17 00:00:00 2001 From: YuSanka Date: Tue, 14 May 2024 16:46:14 +0200 Subject: [PATCH] Follow-up 26d52595 : Fixed a crash on move the GCodeViewer on other monitor --- src/slic3r/GUI/MainFrame.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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