Fixed bug that caused crashes if wxGrid::OnSize was called before grid was properly initialized
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@4194 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
parent
afbdc52a1b
commit
49db7de411
@ -1262,7 +1262,7 @@ void wxGrid::OnPaint( wxPaintEvent& ev )
|
|||||||
|
|
||||||
void wxGrid::OnSize( wxSizeEvent& ev )
|
void wxGrid::OnSize( wxSizeEvent& ev )
|
||||||
{
|
{
|
||||||
CalcDimensions();
|
if ( m_created ) CalcDimensions();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user