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:
@@ -7258,7 +7258,7 @@ void wxGrid::DrawRowLabels( wxDC& dc ,const wxArrayInt& rows)
|
|||||||
|
|
||||||
void wxGrid::DrawRowLabel( wxDC& dc, int row )
|
void wxGrid::DrawRowLabel( wxDC& dc, int row )
|
||||||
{
|
{
|
||||||
if ( GetRowHeight(row) <= 0 )
|
if ( GetRowHeight(row) <= 0 || m_rowLabelWidth <= 0 )
|
||||||
return;
|
return;
|
||||||
|
|
||||||
wxRect rect;
|
wxRect rect;
|
||||||
@@ -7320,7 +7320,7 @@ void wxGrid::DrawColLabels( wxDC& dc,const wxArrayInt& cols )
|
|||||||
|
|
||||||
void wxGrid::DrawColLabel( wxDC& dc, int col )
|
void wxGrid::DrawColLabel( wxDC& dc, int col )
|
||||||
{
|
{
|
||||||
if ( GetColWidth(col) <= 0 )
|
if ( GetColWidth(col) <= 0 || m_colLabelHeight <= 0 )
|
||||||
return;
|
return;
|
||||||
|
|
||||||
int colLeft = GetColLeft(col);
|
int colLeft = GetColLeft(col);
|
||||||
|
Reference in New Issue
Block a user