Applied patch [ 1192917 ] Grids with no row or col headers cause AV under wxGTK
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@34252 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
parent
1696dde5fd
commit
659af82672
@ -7258,7 +7258,7 @@ void wxGrid::DrawRowLabels( wxDC& dc ,const wxArrayInt& rows)
|
||||
|
||||
void wxGrid::DrawRowLabel( wxDC& dc, int row )
|
||||
{
|
||||
if ( GetRowHeight(row) <= 0 )
|
||||
if ( GetRowHeight(row) <= 0 || m_rowLabelWidth <= 0 )
|
||||
return;
|
||||
|
||||
wxRect rect;
|
||||
@ -7320,7 +7320,7 @@ void wxGrid::DrawColLabels( wxDC& dc,const wxArrayInt& cols )
|
||||
|
||||
void wxGrid::DrawColLabel( wxDC& dc, int col )
|
||||
{
|
||||
if ( GetColWidth(col) <= 0 )
|
||||
if ( GetColWidth(col) <= 0 || m_colLabelHeight <= 0 )
|
||||
return;
|
||||
|
||||
int colLeft = GetColLeft(col);
|
||||
|
Loading…
Reference in New Issue
Block a user