controls/CustomTree.py
changeset 1766 c1e5b9f19483
parent 1749 d73b64672238
child 1847 6198190bc121
--- a/controls/CustomTree.py	Thu Aug 17 16:26:32 2017 +0300
+++ b/controls/CustomTree.py	Thu Aug 17 17:25:17 2017 +0300
@@ -117,8 +117,8 @@
             item, flags = self.HitTest(pos)
 
             bitmap_rect = self.GetBitmapRect()
-            if (bitmap_rect.InsideXY(pos.x, pos.y) or
-                flags & wx.TREE_HITTEST_NOWHERE) and self.AddMenu is not None:
+            if ((bitmap_rect.InsideXY(pos.x, pos.y) or
+                 flags & wx.TREE_HITTEST_NOWHERE) and self.AddMenu is not None):
                 wx.CallAfter(self.PopupMenuXY, self.AddMenu, pos.x, pos.y)
         event.Skip()