if (GetItemData(sel) == 0)
return;
- wxItemResource* res = (wxItemResource*) GetItemData(sel);
+ wxItemResource* res = (wxResourceTreeData *)GetItemData(sel)->GetResource();
wxString resType(res->GetType());
if (resType != "wxDialog" && resType != "wxDialogBox" && resType != "wxPanel")
return;
if (m_invalid)
return;
- wxItemResource* res = (wxItemResource*) GetItemData(sel);
+ wxItemResource* res = ((wxResourceTreeData *)GetItemData(sel))->GetResource();
wxString resType(res->GetType());
if (resType != "wxDialog" && resType != "wxDialogBox" && resType != "wxPanel")
return;