From: Robin Dunn Date: Mon, 6 Nov 2006 20:51:20 +0000 (+0000) Subject: better check for valid font and color X-Git-Url: https://git.saurik.com/wxWidgets.git/commitdiff_plain/58dbf9d0a22bc3a7d6d90a5fb1d53d2c6a479eaa better check for valid font and color git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@43129 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- diff --git a/wxPython/wx/lib/customtreectrl.py b/wxPython/wx/lib/customtreectrl.py index c62482044e..8d6ad6b4d4 100644 --- a/wxPython/wx/lib/customtreectrl.py +++ b/wxPython/wx/lib/customtreectrl.py @@ -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()