Ensure that wxPropertyGrid::m_tlp is initialized early enough.
This member variable could be used before it was initialized as OnTLPChanging() was called from Create() before Init2(), where m_tlp was assigned NULL, was called. Closes #13552. git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@70009 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
parent
81dd48085d
commit
9edd688dd3
@ -348,6 +348,7 @@ void wxPropertyGrid::Init1()
|
|||||||
m_eventObject = this;
|
m_eventObject = this;
|
||||||
m_curFocused = NULL;
|
m_curFocused = NULL;
|
||||||
m_processedEvent = NULL;
|
m_processedEvent = NULL;
|
||||||
|
m_tlp = NULL;
|
||||||
m_sortFunction = NULL;
|
m_sortFunction = NULL;
|
||||||
m_inDoPropertyChanged = false;
|
m_inDoPropertyChanged = false;
|
||||||
m_inCommitChangesFromEditor = false;
|
m_inCommitChangesFromEditor = false;
|
||||||
@ -465,7 +466,6 @@ void wxPropertyGrid::Init2()
|
|||||||
SetBackgroundStyle( wxBG_STYLE_CUSTOM );
|
SetBackgroundStyle( wxBG_STYLE_CUSTOM );
|
||||||
|
|
||||||
// Hook the top-level parent
|
// Hook the top-level parent
|
||||||
m_tlp = NULL;
|
|
||||||
m_tlpClosed = NULL;
|
m_tlpClosed = NULL;
|
||||||
m_tlpClosedTime = 0;
|
m_tlpClosedTime = 0;
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user