Browse Source

wxGUI Layer Manager: fix add vector map layer Set color table interactively menu item (#472)

Tomas Zigo 5 năm trước cách đây
mục cha
commit
dc665cca64
1 tập tin đã thay đổi với 8 bổ sung0 xóa
  1. 8 0
      gui/wxpython/lmgr/layertree.py

+ 8 - 0
gui/wxpython/lmgr/layertree.py

@@ -641,6 +641,14 @@ class LayerTree(treemixin.DragAndDrop, CT.CustomTreeCtrl):
                 self.OnVectorColorTable,
                 id=self.popupID['color'])
 
+            self.popupMenu.Append(
+                self.popupID['colori'],
+                _("Set color table interactively"))
+            self.Bind(
+                wx.EVT_MENU,
+                self.lmgr.OnVectorRules,
+                id=self.popupID['colori'])
+
             item = wx.MenuItem(
                 self.popupMenu,
                 id=self.popupID['attr'],