mirror of
https://github.com/SoftFever/OrcaSlicer.git
synced 2025-07-11 16:57:53 -06:00
Fixed crash when typing on keyboard during the app start-up
This commit is contained in:
parent
9fd8461592
commit
2dc88ab0be
1 changed files with 3 additions and 0 deletions
|
@ -2204,6 +2204,9 @@ void GLCanvas3D::on_idle(wxIdleEvent& evt)
|
||||||
|
|
||||||
void GLCanvas3D::on_char(wxKeyEvent& evt)
|
void GLCanvas3D::on_char(wxKeyEvent& evt)
|
||||||
{
|
{
|
||||||
|
if (!m_initialized)
|
||||||
|
return;
|
||||||
|
|
||||||
// see include/wx/defs.h enum wxKeyCode
|
// see include/wx/defs.h enum wxKeyCode
|
||||||
int keyCode = evt.GetKeyCode();
|
int keyCode = evt.GetKeyCode();
|
||||||
int ctrlMask = wxMOD_CONTROL;
|
int ctrlMask = wxMOD_CONTROL;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue