git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@32458
c3d73ce0-8a6f-49c7-b76d-
6d57e0e08775
/// Clear dependencies
void ctConfigToolDoc::ClearDependencies(ctConfigItem* item)
{
- if (!item)
+ if (!item) {
item = GetTopItem();
+ if (!item)
+ return;
+ }
item->GetDependents().Clear();
for ( wxObjectList::compatibility_iterator node = item->GetChildren().GetFirst(); node; node = node->GetNext() )
/// Refresh dependencies
void ctConfigToolDoc::RefreshDependencies(ctConfigItem* item)
{
+ if (item==NULL)
+ return;
+
wxArrayString requiresArr;
wxString requires = item->GetPropertyString(wxT("requires"));
wxString precludes = item->GetPropertyString(wxT("precludes"));