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