Event.hpp: Set event object

This commit is contained in:
Vojtech Kral 2018-10-03 14:07:10 +02:00
parent 770d944283
commit 83f55b608c
3 changed files with 23 additions and 14 deletions

View file

@ -2007,8 +2007,9 @@ GLCanvas3D::~GLCanvas3D()
}
}
void GLCanvas3D::post_event(const wxEvent &event)
void GLCanvas3D::post_event(wxEvent &&event)
{
event.SetEventObject(m_canvas);
wxPostEvent(m_canvas, event);
}