mirror of
https://git.mirrors.martin98.com/https://github.com/bambulab/BambuStudio.git
synced 2025-08-05 20:56:02 +08:00
FIX: crash when no WMP
Change-Id: I9bab2e73da05125ee2ca24ac13456fbb82e91714
This commit is contained in:
parent
13bd9ca445
commit
405444f042
@ -233,8 +233,10 @@ void wxMediaCtrl2::DoSetSize(int x, int y, int width, int height, int sizeFlags)
|
||||
BOOST_LOG_TRIVIAL(info) << "wxMediaCtrl2::DoSetSize: width: " << width << ", height: " << height << ", maxHeight: " << maxHeight;
|
||||
SetMaxSize({-1, maxHeight});
|
||||
Slic3r::GUI::wxGetApp().CallAfter([this] {
|
||||
GetParent()->Layout();
|
||||
GetParent()->Refresh();
|
||||
if (auto p = GetParent()) {
|
||||
p->Layout();
|
||||
p->Refresh();
|
||||
}
|
||||
});
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user