[GRASS-SVN] r37315 - grass/branches/develbranch_6/gui/wxpython/gui_modules

svn_grass at osgeo.org svn_grass at osgeo.org
Wed May 20 17:24:51 EDT 2009


Author: martinl
Date: 2009-05-20 17:24:51 -0400 (Wed, 20 May 2009)
New Revision: 37315

Modified:
   grass/branches/develbranch_6/gui/wxpython/gui_modules/mapdisp.py
Log:
fix r37307, no reason for ';'
be more readable


Modified: grass/branches/develbranch_6/gui/wxpython/gui_modules/mapdisp.py
===================================================================
--- grass/branches/develbranch_6/gui/wxpython/gui_modules/mapdisp.py	2009-05-20 21:15:28 UTC (rev 37314)
+++ grass/branches/develbranch_6/gui/wxpython/gui_modules/mapdisp.py	2009-05-20 21:24:51 UTC (rev 37315)
@@ -1427,8 +1427,9 @@
 
         if self.Map.projinfo['proj'] == 'xy' or 'degree' not in self.Map.projinfo['unit']:
             angle = int(math.degrees(math.atan2(north,east)) + 0.5)
-            angle = 180-angle;
-            if angle < 0: angle = 360+angle
+            angle = 180 - angle
+            if angle < 0:
+                angle = 360+angle
 
             mstring = 'segment = %s %s\ttotal distance = %s %s\tbearing = %d deg' \
                 % (strdist,dunits,strtotdist,tdunits,angle)



More information about the grass-commit mailing list