[GRASS-SVN] r32807 - grass/trunk/gui/wxpython/gui_modules
svn_grass at osgeo.org
svn_grass at osgeo.org
Sat Aug 16 03:34:35 EDT 2008
Author: cmbarton
Date: 2008-08-16 03:34:35 -0400 (Sat, 16 Aug 2008)
New Revision: 32807
Modified:
grass/trunk/gui/wxpython/gui_modules/gdialogs.py
Log:
Fixed bugs in display decorations. Opening properties dialogs caused errors and dialogs would not close. Ported from develbranch_6
Modified: grass/trunk/gui/wxpython/gui_modules/gdialogs.py
===================================================================
--- grass/trunk/gui/wxpython/gui_modules/gdialogs.py 2008-08-16 07:33:57 UTC (rev 32806)
+++ grass/trunk/gui/wxpython/gui_modules/gdialogs.py 2008-08-16 07:34:35 UTC (rev 32807)
@@ -374,24 +374,23 @@
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
+ # "Use mouse..." (-m) flag causes GUI freeze and is pointless here, 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(),
l_render=False, l_hidden=True)
-
- if self.name == 'legend' and \
- params and \
- not self.btnOK.IsEnabled():
- self.btnOK.Enable()
+ if self.name == 'legend':
+ if params and not self.btnOK.IsEnabled():
+ self.btnOK.Enable()
- self.SetTitle(_('Legend of raster map <%s>') % \
- utils.GetLayerNameFromCmd(self.parent.MapWindow.overlays[self.ovlId]['cmd']))
+ #self.SetTitle(_('Legend of raster map <%s>') % \
+ # utils.GetLayerNameFromCmd(self.parent.MapWindow.overlays[self.ovlId]['cmd']))
class TextLayerDialog(wx.Dialog):
"""
More information about the grass-commit
mailing list