]> git.saurik.com Git - wxWidgets.git/blobdiff - utils/dialoged/src/edtree.cpp
more files to ignore in cvs commands (setup.h, lex_yy.c, y_tab.c)
[wxWidgets.git] / utils / dialoged / src / edtree.cpp
index 7bcd95b7728b8640823b16e106b6087e92418970..00086583d88661e7994650c5eb4b26d53b3705ca 100644 (file)
@@ -58,7 +58,7 @@ void wxResourceEditorProjectTree::LeftDClick(wxMouseEvent& WXUNUSED(event))
     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;
@@ -82,7 +82,7 @@ void wxResourceEditorProjectTree::OnSelChanged(wxTreeEvent& WXUNUSED(event))
     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;