added a number of NULL ptr asserts (#4145)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@54914 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -937,6 +937,8 @@ void wxAuiManager::SetArtProvider(wxAuiDockArt* art_provider)
|
||||
|
||||
bool wxAuiManager::AddPane(wxWindow* window, const wxAuiPaneInfo& pane_info)
|
||||
{
|
||||
wxASSERT_MSG(window, wxT("NULL window ptrs are not allowed"));
|
||||
|
||||
// check if the pane has a valid window
|
||||
if (!window)
|
||||
return false;
|
||||
@@ -1072,6 +1074,8 @@ bool wxAuiManager::AddPane(wxWindow* window,
|
||||
bool wxAuiManager::InsertPane(wxWindow* window, const wxAuiPaneInfo& pane_info,
|
||||
int insert_level)
|
||||
{
|
||||
wxASSERT_MSG(window, wxT("NULL window ptrs are not allowed"));
|
||||
|
||||
// shift the panes around, depending on the insert level
|
||||
switch (insert_level)
|
||||
{
|
||||
@@ -1132,6 +1136,8 @@ bool wxAuiManager::InsertPane(wxWindow* window, const wxAuiPaneInfo& pane_info,
|
||||
// method will not destroy the window that is removed.
|
||||
bool wxAuiManager::DetachPane(wxWindow* window)
|
||||
{
|
||||
wxASSERT_MSG(window, wxT("NULL window ptrs are not allowed"));
|
||||
|
||||
int i, count;
|
||||
for (i = 0, count = m_panes.GetCount(); i < count; ++i)
|
||||
{
|
||||
|
Reference in New Issue
Block a user