]> git.saurik.com Git - wxWidgets.git/blobdiff - samples/treectrl/treetest.cpp
removed style parameter from MSWCreateToolbar(), it is unneeded
[wxWidgets.git] / samples / treectrl / treetest.cpp
index 494b2e249f9fef63f27409560a15f6a2880ca332..cbdf952ce877db062aec722602a36c710bfd296c 100644 (file)
@@ -1016,7 +1016,7 @@ void MyTreeCtrl::OnEndDrag(wxTreeEvent& event)
     if ( itemDst.IsOk() && !ItemHasChildren(itemDst) )
     {
         // copy to the parent then
-        itemDst = GetParent(itemDst);
+        itemDst = GetItemParent(itemDst);
     }
 
     if ( !itemDst.IsOk() )