[GRASS-SVN] r31152 -
grass/branches/develbranch_6/gui/wxpython/gui_modules
svn_grass at osgeo.org
svn_grass at osgeo.org
Mon Apr 28 03:18:18 EDT 2008
Author: martinl
Date: 2008-04-28 03:18:17 -0400 (Mon, 28 Apr 2008)
New Revision: 31152
Modified:
grass/branches/develbranch_6/gui/wxpython/gui_modules/profile.py
Log:
wxGUI (profile): do not require drawn transect on set raster (just do not create profile)
Modified: grass/branches/develbranch_6/gui/wxpython/gui_modules/profile.py
===================================================================
--- grass/branches/develbranch_6/gui/wxpython/gui_modules/profile.py 2008-04-27 21:29:56 UTC (rev 31151)
+++ grass/branches/develbranch_6/gui/wxpython/gui_modules/profile.py 2008-04-28 07:18:17 UTC (rev 31152)
@@ -226,7 +226,7 @@
self.raster[r]['name'] = dlg.raster[r]['name']
# plot profile
- if self.raster[0]['name']:
+ if self.raster[0]['name'] and len(self.mapwin.polycoords) > 0:
self.OnCreateProfile(event=None)
dlg.Destroy()
@@ -728,15 +728,15 @@
self.parent = parent
self.coordstr = self.parent.coordstr
- if self.coordstr == '':
- dlg = wx.MessageDialog(parent=self,
- message=_('You must draw a transect to profile in the map display window.'),
- caption=_('Nothing to profile'),
- style=wx.OK | wx.ICON_INFORMATION | wx.CENTRE)
- dlg.ShowModal()
- dlg.Destroy()
- self.Close(True)
- return
+ # if self.coordstr == '':
+ # dlg = wx.MessageDialog(parent=self,
+ # message=_('You must draw a transect to profile in the map display window.'),
+ # caption=_('Nothing to profile'),
+ # style=wx.OK | wx.ICON_INFORMATION | wx.CENTRE)
+ # dlg.ShowModal()
+ # dlg.Destroy()
+ # self.Close(True)
+ # return
self.raster = { 0 : { 'name' : self.parent.raster[0]['name'],
'id' : None },
More information about the grass-commit
mailing list