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:
@@ -494,9 +494,9 @@ class DragImage(wx.DragImage):
|
|||||||
text = item.GetText()
|
text = item.GetText()
|
||||||
font = item.Attr().GetFont()
|
font = item.Attr().GetFont()
|
||||||
colour = item.Attr().GetTextColour()
|
colour = item.Attr().GetTextColour()
|
||||||
if colour is None:
|
if not colour:
|
||||||
colour = wx.BLACK
|
colour = wx.BLACK
|
||||||
if font is None:
|
if not font:
|
||||||
font = treeCtrl._normalFont
|
font = treeCtrl._normalFont
|
||||||
|
|
||||||
backcolour = treeCtrl.GetBackgroundColour()
|
backcolour = treeCtrl.GetBackgroundColour()
|
||||||
|
Reference in New Issue
Block a user