better check for valid font and color

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@43129 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Robin Dunn 2006-11-06 20:51:20 +00:00
parent 3901007753
commit 58dbf9d0a2

View File

@ -494,9 +494,9 @@ class DragImage(wx.DragImage):
text = item.GetText()
font = item.Attr().GetFont()
colour = item.Attr().GetTextColour()
if colour is None:
if not colour:
colour = wx.BLACK
if font is None:
if not font:
font = treeCtrl._normalFont
backcolour = treeCtrl.GetBackgroundColour()