mirror of
https://git.mirrors.martin98.com/https://github.com/prusa3d/PrusaSlicer.git
synced 2025-07-09 19:41:49 +08:00
Fixed a crash on a changing of the application scale
This commit is contained in:
parent
3fb1e8a35f
commit
c1b58d2c51
@ -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…
x
Reference in New Issue
Block a user