]> git.saurik.com Git - wxWidgets.git/commitdiff
better check for valid font and color
authorRobin Dunn <robin@alldunn.com>
Mon, 6 Nov 2006 20:51:20 +0000 (20:51 +0000)
committerRobin Dunn <robin@alldunn.com>
Mon, 6 Nov 2006 20:51:20 +0000 (20:51 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@43129 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

wxPython/wx/lib/customtreectrl.py

index c62482044e20d3a467c2010665f836e73b51a206..8d6ad6b4d43c6d02b54ed6530622c91317368f68 100644 (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()