set drop target on panel if present

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@45724 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Roman Rolinsky
2007-04-30 23:43:48 +00:00
parent 781130bf60
commit c3793e4660

View File

@@ -1038,7 +1038,10 @@ class XML_Tree(wx.TreeCtrl):
wx.EVT_CLOSE(testWin, self.OnCloseTestWin)
wx.EVT_SIZE(testWin, self.OnSizeTestWin)
# Add drop target
testWin.SetDropTarget(DropTarget())
if testWin.panel:
testWin.panel.SetDropTarget(DropTarget())
else:
testWin.SetDropTarget(DropTarget())
# Reset highlights
testWin.highLight = testWin.highLightDT = None
if highLight and not self.pendingHighLight: