Fixed a crash on a changing of the application scale

This commit is contained in:
YuSanka 2023-01-26 12:30:24 +01:00
parent 3fb1e8a35f
commit c1b58d2c51

View File

@ -2190,10 +2190,9 @@ void TabFilament::clear_pages()
void TabFilament::msw_rescale() void TabFilament::msw_rescale()
{ {
for (const auto& over_opt : m_overrides_options) { for (const auto& over_opt : m_overrides_options)
wxWindow* win = over_opt.second; if (wxWindow* win = over_opt.second)
win->SetInitialSize(win->GetBestSize()); win->SetInitialSize(win->GetBestSize());
}
Tab::msw_rescale(); Tab::msw_rescale();
} }