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()
{
for (const auto& over_opt : m_overrides_options) {
wxWindow* win = over_opt.second;
win->SetInitialSize(win->GetBestSize());
}
for (const auto& over_opt : m_overrides_options)
if (wxWindow* win = over_opt.second)
win->SetInitialSize(win->GetBestSize());
Tab::msw_rescale();
}