[GRASS-SVN] r68391 - in grass/trunk: gui/wxpython/core scripts/d.polar

svn_grass at osgeo.org svn_grass at osgeo.org
Fri May 6 18:55:18 PDT 2016


Author: annakrat
Date: 2016-05-06 18:55:18 -0700 (Fri, 06 May 2016)
New Revision: 68391

Modified:
   grass/trunk/gui/wxpython/core/utils.py
   grass/trunk/scripts/d.polar/d.polar.py
Log:
d.polar: broken since r64459, fixed and enabled from GUI

Modified: grass/trunk/gui/wxpython/core/utils.py
===================================================================
--- grass/trunk/gui/wxpython/core/utils.py	2016-05-07 00:02:46 UTC (rev 68390)
+++ grass/trunk/gui/wxpython/core/utils.py	2016-05-07 01:55:18 UTC (rev 68391)
@@ -1021,7 +1021,8 @@
                  'd.out.file': 'export',
                  'd.to.rast': 'torast',
                  'd.text': 'text',
-                 'd.northarrow': 'northarrow'
+                 'd.northarrow': 'northarrow',
+                 'd.polar': 'polar'
                  }
 ltype2command = {}
 for (cmd, ltype) in command2ltype.items():

Modified: grass/trunk/scripts/d.polar/d.polar.py
===================================================================
--- grass/trunk/scripts/d.polar/d.polar.py	2016-05-07 00:02:46 UTC (rev 68390)
+++ grass/trunk/scripts/d.polar/d.polar.py	2016-05-07 01:55:18 UTC (rev 68391)
@@ -76,8 +76,8 @@
     # window.
     s = gcore.read_command('d.info', flags='d')
     f = s.split()
-    frame_width = float(f[1])
-    frame_height = float(f[2])
+    frame_width = float(f[2])
+    frame_height = float(f[3])
 
     # take shorter side as length of frame side
     min_side = min(frame_width, frame_height)



More information about the grass-commit mailing list