From: Vadim Zeitlin Date: Mon, 4 Mar 2013 11:48:26 +0000 (+0000) Subject: Fix crash on wxDataViewCtrl creation after r73565. X-Git-Url: https://git.saurik.com/wxWidgets.git/commitdiff_plain/09f84bc71682e86a035497694e3dda907ebe78b9 Fix crash on wxDataViewCtrl creation after r73565. Initialize m_clientArea to NULL to avoid crash in SetFont() which is called during the control creation. This might still be not 100% correct as the initial font is not set at all for the client area but at least it fixes the crash. See #15056. git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@73601 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- diff --git a/src/generic/datavgen.cpp b/src/generic/datavgen.cpp index a640773ce3..631cfecd76 100644 --- a/src/generic/datavgen.cpp +++ b/src/generic/datavgen.cpp @@ -4437,6 +4437,7 @@ void wxDataViewCtrl::Init() m_sortingColumnIdx = wxNOT_FOUND; m_headerArea = NULL; + m_clientArea = NULL; m_colsDirty = false; }