Browse Source

wxGUI: fix VectorCleaningFrame

git-svn-id: https://svn.osgeo.org/grass/grass/trunk@49487 15284696-431f-4ddb-bdfa-cd5b030d7da7
Martin Landa 13 years ago
parent
commit
ade10aa091
2 changed files with 2 additions and 6 deletions
  1. 1 1
      gui/wxpython/modules/vclean.py
  2. 1 5
      gui/wxpython/wxgui.py

+ 1 - 1
gui/wxpython/modules/vclean.py

@@ -34,7 +34,7 @@ class VectorCleaningFrame(wx.Frame):
         """!
         Dialog for interactively defining vector cleaning tools
         """
-        wx.Frame.__init__(self, parent, id, title, pos, size, style)
+        wx.Frame.__init__(self, parent, id, title, style =  style, **kwargs)
 
         self.parent = parent # GMFrame
         if self.parent:

+ 1 - 5
gui/wxpython/wxgui.py

@@ -1137,11 +1137,7 @@ class GMFrame(wx.Frame):
     def OnVectorCleaning(self, event, cmd = ''):
         """!Init interactive vector cleaning
         """
-        
-        if event:
-            cmd = self.GetMenuCmd(event)
-
-        win = VectorCleaningFrame(parent = self, cmd = cmd[0])
+        win = VectorCleaningFrame(parent = self)
         win.CentreOnScreen()
         win.Show()