- if ( m_inPaintHandler )
- {
- // This is neccessary so that subsequently created wxPaintDCs won't get
- // confused about clipping. Another reason is that the same MGL dc is reused
- // for wxEraseEvent, wxNcPaintEvent and wxPaintEvent
- DestroyClippingRegion();
- }
- else