Erase event now is now sent with a valid event object

This commit is contained in:
Graham Dawes
2018-12-20 13:40:18 +00:00
parent bfb59228c1
commit 172a97e411

View File

@@ -1074,6 +1074,7 @@ bool wxWindowQt::QtHandlePaintEvent ( QWidget *handler, QPaintEvent *event )
dc.SetDeviceClippingRegion( m_updateRegion );
wxEraseEvent erase( GetId(), &dc );
erase.SetEventObject(this);
if ( ProcessWindowEvent(erase) )
{
// background erased, don't do it again