[GRASS-SVN] r39299 - grass/branches/releasebranch_6_4/gui/wxpython/gui_modules

svn_grass at osgeo.org svn_grass at osgeo.org
Sat Sep 26 18:27:19 EDT 2009


Author: cmbarton
Date: 2009-09-26 18:27:19 -0400 (Sat, 26 Sep 2009)
New Revision: 39299

Modified:
   grass/branches/releasebranch_6_4/gui/wxpython/gui_modules/mapdisp.py
Log:
Fix for bug in dragging rubber band line to create profile transect or to measure. Equivalent to develbrach_6 r39258 (could not be backported).

Modified: grass/branches/releasebranch_6_4/gui/wxpython/gui_modules/mapdisp.py
===================================================================
--- grass/branches/releasebranch_6_4/gui/wxpython/gui_modules/mapdisp.py	2009-09-26 22:16:56 UTC (rev 39298)
+++ grass/branches/releasebranch_6_4/gui/wxpython/gui_modules/mapdisp.py	2009-09-26 22:27:19 UTC (rev 39299)
@@ -979,7 +979,7 @@
             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