Fix generic wxHeaderCtrl repainting in scrolled state

Clear the device context used for painting the tabs to avoid repainting
issues.

Closes https://github.com/wxWidgets/wxWidgets/pull/908

Closes #18209.
This commit is contained in:
Anil
2018-08-31 19:45:45 +05:30
committed by Vadim Zeitlin
parent 698120c225
commit 0fb97907e1

View File

@@ -490,6 +490,7 @@ void wxHeaderCtrl::OnPaint(wxPaintEvent& WXUNUSED(event))
#endif
wxAutoBufferedPaintDC dc(this);
dc.Clear();
// account for the horizontal scrollbar offset in the parent window
dc.SetDeviceOrigin(m_scrollOffset, 0);