Fixed a crash on a changing of the application scale
This commit is contained in:
parent
3fb1e8a35f
commit
c1b58d2c51
1 changed files with 3 additions and 4 deletions
|
@ -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();
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue