Jelajahi Sumber

wxGUI: fix vdigit toolbar (merge from devbr6, https://trac.osgeo.org/grass/changeset/33048)

git-svn-id: https://svn.osgeo.org/grass/grass/trunk@33049 15284696-431f-4ddb-bdfa-cd5b030d7da7
Martin Landa 16 tahun lalu
induk
melakukan
448f0e35f5
1 mengubah file dengan 2 tambahan dan 2 penghapusan
  1. 2 2
      gui/wxpython/gui_modules/toolbars.py

+ 2 - 2
gui/wxpython/gui_modules/toolbars.py

@@ -722,7 +722,7 @@ class VDigitToolbar(AbstractToolbar):
                            kind=wx.ITEM_CHECK)
         toolMenu.AppendItem(copy)
         self.parent.MapWindow.Bind(wx.EVT_MENU, self.OnCopy, copy)
-        if self.toolbars['map'].GetAction() == "copyLine":
+        if self.action['desc'] == "copyLine":
             copy.Check(True)
 
         flip = wx.MenuItem(parentMenu=toolMenu, id=wx.ID_ANY,
@@ -730,7 +730,7 @@ class VDigitToolbar(AbstractToolbar):
                            kind=wx.ITEM_CHECK)
         toolMenu.AppendItem(flip)
         self.parent.MapWindow.Bind(wx.EVT_MENU, self.OnFlip, flip)
-        if self.toolbars['map'].GetAction() == "flipLine":
+        if self.action['desc'] == "flipLine":
             flip.Check(True)
 
         merge = wx.MenuItem(parentMenu=toolMenu, id=wx.ID_ANY,