Fix crash with NULL pointer dereferencing
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@56208 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -4154,7 +4154,7 @@ WXLRESULT wxDataViewCtrl::MSWWindowProc(WXUINT nMsg,
|
|||||||
wxSize wxDataViewCtrl::GetSizeAvailableForScrollTarget(const wxSize& size)
|
wxSize wxDataViewCtrl::GetSizeAvailableForScrollTarget(const wxSize& size)
|
||||||
{
|
{
|
||||||
wxSize newsize = size;
|
wxSize newsize = size;
|
||||||
if (!HasFlag(wxDV_NO_HEADER))
|
if (!HasFlag(wxDV_NO_HEADER) && (m_headerArea))
|
||||||
newsize.y -= m_headerArea->GetSize().y;
|
newsize.y -= m_headerArea->GetSize().y;
|
||||||
|
|
||||||
return newsize;
|
return newsize;
|
||||||
|
Reference in New Issue
Block a user