[GRASS-SVN] r33309 - grass/trunk/gui/wxpython/gui_modules

svn_grass at osgeo.org svn_grass at osgeo.org
Sun Sep 7 06:26:11 EDT 2008


Author: martinl
Date: 2008-09-07 06:26:11 -0400 (Sun, 07 Sep 2008)
New Revision: 33309

Modified:
   grass/trunk/gui/wxpython/gui_modules/mapdisp.py
Log:
wxGUI: bug fix - trac #299 - wxGUI fails to handle illegal region extent 
(merge from devbr6, r33308)


Modified: grass/trunk/gui/wxpython/gui_modules/mapdisp.py
===================================================================
--- grass/trunk/gui/wxpython/gui_modules/mapdisp.py	2008-09-07 10:17:39 UTC (rev 33308)
+++ grass/trunk/gui/wxpython/gui_modules/mapdisp.py	2008-09-07 10:26:11 UTC (rev 33309)
@@ -2309,9 +2309,9 @@
                      "s=%f"    % new['s'],
                      "e=%f"    % new['e'],
                      "w=%f"    % new['w'],
-                     "rows=%f" % new['rows'],
-                     "cols=%f" % new['cols']]
-
+                     "rows=%d" % int(new['rows']),
+                     "cols=%d" % int(new['cols'])]
+        
         p = gcmd.Command(cmdRegion)
 
         if tmpreg:



More information about the grass-commit mailing list