Bug in Subindex grid right click with i18n fixed
authorlaurent
Wed, 16 Jun 2010 21:28:34 +0200
changeset 622 f0935accb93b
parent 621 609aff93810a
child 623 36b62c854ee2
Bug in Subindex grid right click with i18n fixed
objdictgen/subindextable.py
--- a/objdictgen/subindextable.py	Wed Dec 16 10:15:09 2009 +0100
+++ b/objdictgen/subindextable.py	Wed Jun 16 21:28:34 2010 +0200
@@ -748,14 +748,14 @@
                     else:
                         self.SubindexGridMenu.FindItemByPosition(0).Enable(False)
                         self.SubindexGridMenu.FindItemByPosition(1).Enable(False)
-                    if self.Table.GetColLabelValue(event.GetCol()) == "value":
+                    if self.Table.GetColLabelValue(event.GetCol(), False) == "value":
                         showpopup = True
                         self.SubindexGridMenu.FindItemByPosition(3).Enable(True)
                     else:
                         self.SubindexGridMenu.FindItemByPosition(3).Enable(False)
                     if showpopup:
                         self.PopupMenu(self.SubindexGridMenu)
-        elif self.Table.GetColLabelValue(event.GetCol()) == "value":
+        elif self.Table.GetColLabelValue(event.GetCol(), False) == "value":
             selected = self.IndexList.GetSelection()
             if selected != wx.NOT_FOUND:
                 index = self.ListIndex[selected]