]> git.saurik.com Git - wxWidgets.git/blobdiff - include/wx/msw/treectrl.h
Fixed OS/2 compilation problems.
[wxWidgets.git] / include / wx / msw / treectrl.h
index b99a97724afaae67a8b78b84f2730f0fe07a3cdf..a9234253773a0e3026a3c46d70bdf1128e2d04f3 100644 (file)
@@ -439,7 +439,7 @@ private:
                              class wxTreeItemIndirectData *data);
     bool HasIndirectData(const wxTreeItemId& item) 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)
     wxHashTable m_attrs;