]> git.saurik.com Git - wxWidgets.git/commitdiff
set drop target on panel if present
authorRoman Rolinsky <rolinsky@femagsoft.com>
Mon, 30 Apr 2007 23:43:48 +0000 (23:43 +0000)
committerRoman Rolinsky <rolinsky@femagsoft.com>
Mon, 30 Apr 2007 23:43:48 +0000 (23:43 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@45724 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

wxPython/wx/tools/XRCed/tree.py

index e2ab28a4037cfd7e4545f80da4bd5ef862e8d31e..949046400e5bb034ee5345147e6f099ca2c57554 100644 (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: