From 44c101a7f8e644519810260b9f827761c41ff569 Mon Sep 17 00:00:00 2001 From: Kunlong Ma Date: Fri, 10 May 2024 19:40:11 +0800 Subject: [PATCH] FIX: fix crash when switched the dpi JIRA: STUDIO-7049 Fix studio crash caused by switching dpi when multi machine is not enabled Change-Id: I8336de99800d81e3240023b0b35f379e91c251ac --- src/slic3r/GUI/MainFrame.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/slic3r/GUI/MainFrame.cpp b/src/slic3r/GUI/MainFrame.cpp index 070d3b73b..c5a3a147f 100644 --- a/src/slic3r/GUI/MainFrame.cpp +++ b/src/slic3r/GUI/MainFrame.cpp @@ -2083,7 +2083,8 @@ void MainFrame::on_dpi_changed(const wxRect& suggested_rect) m_param_panel->msw_rescale(); m_project->msw_rescale(); m_monitor->msw_rescale(); - m_multi_machine->msw_rescale(); + if (m_multi_machine) + m_multi_machine->msw_rescale(); m_calibration->msw_rescale(); // BBS