fixed crash when an item didn't have any data
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@13190 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -439,7 +439,7 @@ private:
|
|||||||
class wxTreeItemIndirectData *data);
|
class wxTreeItemIndirectData *data);
|
||||||
bool HasIndirectData(const wxTreeItemId& item) const;
|
bool HasIndirectData(const wxTreeItemId& item) const;
|
||||||
bool IsDataIndirect(wxTreeItemData *data) const
|
bool IsDataIndirect(wxTreeItemData *data) const
|
||||||
{ return data->GetId().m_pItem == 0; }
|
{ return data && data->GetId().m_pItem == 0; }
|
||||||
|
|
||||||
// the hash storing the items attributes (indexed by items ids)
|
// the hash storing the items attributes (indexed by items ids)
|
||||||
wxHashTable m_attrs;
|
wxHashTable m_attrs;
|
||||||
|
Reference in New Issue
Block a user