mirror of
https://github.com/SoftFever/OrcaSlicer.git
synced 2025-07-12 17:27:52 -06:00
Fix of an ASAN crash on app close (Linux)
This commit is contained in:
parent
bf12c7cb8c
commit
2618992c8b
1 changed files with 1 additions and 1 deletions
|
@ -241,7 +241,7 @@ DPIFrame(NULL, wxID_ANY, "", wxDefaultPosition, wxDefaultSize, wxDEFAULT_FRAME_S
|
||||||
// OSX specific issue:
|
// OSX specific issue:
|
||||||
// When we move application between Retina and non-Retina displays, The legend on a canvas doesn't redraw
|
// When we move application between Retina and non-Retina displays, The legend on a canvas doesn't redraw
|
||||||
// So, redraw explicitly canvas, when application is moved
|
// So, redraw explicitly canvas, when application is moved
|
||||||
#ifdef ENABLE_RETINA_GL
|
#if ENABLE_RETINA_GL
|
||||||
Bind(wxEVT_MOVE, [this](wxMoveEvent& event) {
|
Bind(wxEVT_MOVE, [this](wxMoveEvent& event) {
|
||||||
wxGetApp().plater()->get_current_canvas3D()->set_as_dirty();
|
wxGetApp().plater()->get_current_canvas3D()->set_as_dirty();
|
||||||
wxGetApp().plater()->get_current_canvas3D()->request_extra_frame();
|
wxGetApp().plater()->get_current_canvas3D()->request_extra_frame();
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue