[GRASS-SVN] r39289 - grass/trunk/gui/wxpython/gui_modules
svn_grass at osgeo.org
svn_grass at osgeo.org
Thu Sep 24 15:47:17 EDT 2009
Author: cmbarton
Date: 2009-09-24 15:47:17 -0400 (Thu, 24 Sep 2009)
New Revision: 39289
Modified:
grass/trunk/gui/wxpython/gui_modules/mapdisp_window.py
Log:
backport profile and measurement bug fix from develbranch_6 r39258
Modified: grass/trunk/gui/wxpython/gui_modules/mapdisp_window.py
===================================================================
--- grass/trunk/gui/wxpython/gui_modules/mapdisp_window.py 2009-09-24 19:46:36 UTC (rev 39288)
+++ grass/trunk/gui/wxpython/gui_modules/mapdisp_window.py 2009-09-24 19:47:17 UTC (rev 39289)
@@ -901,11 +901,14 @@
if type(r) is list:
r = wx.Rect(r[0], r[1], r[2], r[3])
r.Inflate(4, 4)
- pdc.ClearId(boxid)
+ try:
+ pdc.ClearId(boxid)
+ except:
+ pass
self.RefreshRect(r, False)
pdc.SetId(boxid)
self.Draw(pdc, drawid=boxid, pdctype='box', coords=mousecoords)
- elif self.mouse['box'] == "line":
+ elif self.mouse['box'] == "line" or self.mouse['box'] == 'point':
self.lineid = wx.ID_NEW
mousecoords = [begin[0], begin[1], \
end[0], end[1]]
More information about the grass-commit
mailing list