Avoid unnecessarily refreshing native header in wxGrid

We don't need to refresh it after resizing, it takes care of itself and
calling Refresh() just results in extra flicker.

See #18794.
This commit is contained in:
Vadim Zeitlin 2020-06-21 00:29:55 +02:00
parent 867cc2a3eb
commit bf266ca348

View File

@ -9844,7 +9844,10 @@ void wxGrid::DoSetColSize( int col, int width )
FurtherWindowPartRefresher refreshFurtherPart(x);
refreshFurtherPart(m_colLabelWin);
// Refreshing the native header is unnecessary, as it updates
// itself correctly anyhow, and just results in extra flicker.
if ( !IsUsingNativeHeader() )
refreshFurtherPart(m_colLabelWin);
refreshFurtherPart(m_gridWin);
if ( m_frozenRowGridWin )