Get corner window's rectangle in a more clear way

This commit is contained in:
Pavel Kalugin
2018-09-04 12:57:25 +03:00
parent db83d41693
commit 7ed7f87a50

View File

@@ -7343,7 +7343,7 @@ void wxGrid::SetCornerLabelValue( const wxString& s )
m_table->SetCornerLabelValue( s ); m_table->SetCornerLabelValue( s );
if ( !GetBatchCount() ) if ( !GetBatchCount() )
{ {
wxRect rect(wxSize(m_rowLabelWidth, m_colLabelHeight)); wxRect rect = m_cornerLabelWin->GetRect();
m_cornerLabelWin->Refresh(true, &rect); m_cornerLabelWin->Refresh(true, &rect);
} }
} }