[GRASS-SVN] r30924 - grass/trunk/gui/wxpython/gui_modules

svn_grass at osgeo.org svn_grass at osgeo.org
Thu Apr 10 07:05:11 EDT 2008


Author: martinl
Date: 2008-04-10 07:05:11 -0400 (Thu, 10 Apr 2008)
New Revision: 30924

Modified:
   grass/trunk/gui/wxpython/gui_modules/gdialogs.py
Log:
wxGUI (legend): ignore "Use mouse..." (-m) flag in the d.legend dialog ('-m' flag causes freeze of GUI), trac #119


Modified: grass/trunk/gui/wxpython/gui_modules/gdialogs.py
===================================================================
--- grass/trunk/gui/wxpython/gui_modules/gdialogs.py	2008-04-10 10:49:06 UTC (rev 30923)
+++ grass/trunk/gui/wxpython/gui_modules/gdialogs.py	2008-04-10 11:05:11 UTC (rev 30924)
@@ -355,6 +355,12 @@
         self.parent.MapWindow.overlays[self.ovlId]['propwin'] = propwin
 
         # change parameters for item in layers list in render.Map
+        # "Use mouse..." (-m) flag causes GUI freeze, trac #119
+        try:
+            self.parent.MapWindow.overlays[self.ovlId]['cmd'].remove('-m')
+        except ValueError:
+            pass
+        
         self.parent.Map.ChangeOverlay(id=self.ovlId, type=self.name,
                                       command=self.parent.MapWindow.overlays[self.ovlId]['cmd'],
                                       l_active=self.parent.MapWindow.overlays[self.ovlId]['layer'].IsActive(),



More information about the grass-commit mailing list