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
This commit is contained in:
Kunlong Ma 2024-05-10 19:40:11 +08:00 committed by Lane.Wei
parent 6fa6a1742c
commit 44c101a7f8
1 changed files with 2 additions and 1 deletions

View File

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